diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-04 19:57:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-04 19:57:20 +0000 |
commit | 011c86b22aa67f25d751f731501eaaec9600f44c (patch) | |
tree | c48c84bc91dcd97975a4996d5cffee41ff873fea /plugins/SmileyAdd/src/AniSmileyObject.cpp | |
parent | a9e2b96e8d4664fddea569f0c233bc0b028555f1 (diff) |
fix for the smileys cleanup procedure
git-svn-id: http://svn.miranda-ng.org/main/trunk@3887 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/AniSmileyObject.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/AniSmileyObject.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/SmileyAdd/src/AniSmileyObject.cpp b/plugins/SmileyAdd/src/AniSmileyObject.cpp index 42a63d3549..0412aa5cd8 100644 --- a/plugins/SmileyAdd/src/AniSmileyObject.cpp +++ b/plugins/SmileyAdd/src/AniSmileyObject.cpp @@ -440,11 +440,13 @@ static void CALLBACK timerProc(HWND, UINT, UINT_PTR, DWORD) void DestroyAniSmileys(void)
{
- if (timerId && (timerId+1))
- {
+ if (timerId && (timerId+1)) {
KillTimer(NULL, timerId);
timerId = 0;
}
+
+ for (int i=0; i < regAniSmileys.getCount(); i++)
+ delete regAniSmileys[i];
regAniSmileys.destroy();
}
|