summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/customsmiley.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-10-02 15:49:19 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-10-02 15:49:19 +0000
commitd23b4b4b1ccc9549aa8fc12326e7d7f135f1ce39 (patch)
tree7fdb3cb6da55269864639d6fa0be7f2542799b81 /plugins/SmileyAdd/src/customsmiley.cpp
parent8b3eb587f0d868ee403e96f98d135fd7ab7a620b (diff)
SmileyAdd: coverity fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15486 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/customsmiley.cpp')
-rw-r--r--plugins/SmileyAdd/src/customsmiley.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/SmileyAdd/src/customsmiley.cpp b/plugins/SmileyAdd/src/customsmiley.cpp
index 0b725d6a9f..32a6f7ff25 100644
--- a/plugins/SmileyAdd/src/customsmiley.cpp
+++ b/plugins/SmileyAdd/src/customsmiley.cpp
@@ -75,7 +75,7 @@ bool SmileyCType::CreateTriggerText(char* text)
if (len == 0) return false;
unsigned reslen;
- char* res = (char*)mir_base64_decode(text, &reslen);
+ ptrA res((char*)mir_base64_decode(text, &reslen));
if (res == NULL)
return false;
@@ -88,7 +88,6 @@ bool SmileyCType::CreateTriggerText(char* text)
m_TriggerText = txt;
mir_free(txt);
- mir_free(res);
return true;
}