summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-12-31 15:00:35 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-12-31 15:00:35 +0000
commit37ab301d0182a418bbbe7e3b86d8f524fef0372e (patch)
tree39cdd1294ac2035aa98f301ef56aaf0771ad17e5
parent9987cbcad2d628f3d627e0858ce4ab027ea22e90 (diff)
memleaks fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11697 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/SmileyAdd/src/customsmiley.cpp1
-rw-r--r--plugins/SmileyAdd/src/smileys.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/SmileyAdd/src/customsmiley.cpp b/plugins/SmileyAdd/src/customsmiley.cpp
index ca5f24ed26..298fae1a2f 100644
--- a/plugins/SmileyAdd/src/customsmiley.cpp
+++ b/plugins/SmileyAdd/src/customsmiley.cpp
@@ -88,6 +88,7 @@ bool SmileyCType::CreateTriggerText(char* text)
m_TriggerText = txt;
mir_free(txt);
+ mir_free(res);
return true;
}
diff --git a/plugins/SmileyAdd/src/smileys.cpp b/plugins/SmileyAdd/src/smileys.cpp
index 6b12dbd0de..71533b9d8f 100644
--- a/plugins/SmileyAdd/src/smileys.cpp
+++ b/plugins/SmileyAdd/src/smileys.cpp
@@ -261,6 +261,7 @@ void SmileyPackType::AddTriggersToSmileyLookup(void)
first = false;
}
}
+ delete dats;
}
delete m0;
}