summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/AniSmileyObject.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-03-02 16:26:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-03-02 16:26:22 +0000
commit8afe326e69706f6bbcd501d4ea93656370a68162 (patch)
treea92894e2d72c045a84e0c0bb6db77aea369d1d04 /plugins/SmileyAdd/src/AniSmileyObject.cpp
parent2aec786828e22fe45d373c5c42853d8518ba9be8 (diff)
minor fix for unloading ani avatars
git-svn-id: http://svn.miranda-ng.org/main/trunk@16394 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/AniSmileyObject.cpp')
-rw-r--r--plugins/SmileyAdd/src/AniSmileyObject.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/SmileyAdd/src/AniSmileyObject.cpp b/plugins/SmileyAdd/src/AniSmileyObject.cpp
index 90a04df8fa..c437b9ab5a 100644
--- a/plugins/SmileyAdd/src/AniSmileyObject.cpp
+++ b/plugins/SmileyAdd/src/AniSmileyObject.cpp
@@ -71,8 +71,10 @@ public:
void UnloadSmiley()
{
- if (m_bRegistered)
+ if (m_bRegistered) {
m_sml->RemoveObject(this);
+ m_bRegistered = false;
+ }
if (m_img != NULL) {
m_img->Release();