summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/ImageDataObject.h
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-01-25 21:39:23 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-01-25 21:39:23 +0000
commitb6b84ffaf51673a3b9b2851602428ac815b680c4 (patch)
tree51733a10acfde433c5f3a15b573bfc865ee42d5a /plugins/TabSRMM/src/ImageDataObject.h
parent619f8bc3cf5e9f4aac984b8f855b74293fbb787d (diff)
TabSRMM:
- Fixed memory issues - Fixed translation issue (fixes #869) git-svn-id: http://svn.miranda-ng.org/main/trunk@11909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/ImageDataObject.h')
-rw-r--r--plugins/TabSRMM/src/ImageDataObject.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/ImageDataObject.h b/plugins/TabSRMM/src/ImageDataObject.h
index f05df9fa69..2601c10dc6 100644
--- a/plugins/TabSRMM/src/ImageDataObject.h
+++ b/plugins/TabSRMM/src/ImageDataObject.h
@@ -68,9 +68,11 @@ public:
STDMETHOD_(ULONG, Release)(void)
{
- m_ulRefCnt--;
- if (m_ulRefCnt == 0)
+ m_ulRefCnt--;
+ if (m_ulRefCnt == 0) {
delete this;
+ return 0;
+ }
return m_ulRefCnt;
}