summaryrefslogtreecommitdiff
path: root/plugins/SimpleStatusMsg/src/main.cpp
diff options
context:
space:
mode:
authorSzymon Tokarz <wsx22@o2.pl>2013-12-13 21:49:52 +0000
committerSzymon Tokarz <wsx22@o2.pl>2013-12-13 21:49:52 +0000
commitbbce51b07660e652f7f5ebd9ce8ceb1bba6e6389 (patch)
tree9148a1e6663c97bcf1283f0b443ceef17d47c47f /plugins/SimpleStatusMsg/src/main.cpp
parent2c73c95d00f1637031042a75fc99d2a4ba92d21b (diff)
Simple Status Message
- fix some memory related issues. (Schould fix ticket #510) git-svn-id: http://svn.miranda-ng.org/main/trunk@7196 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SimpleStatusMsg/src/main.cpp')
-rw-r--r--plugins/SimpleStatusMsg/src/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/SimpleStatusMsg/src/main.cpp b/plugins/SimpleStatusMsg/src/main.cpp
index c0d89db564..fc120c6acb 100644
--- a/plugins/SimpleStatusMsg/src/main.cpp
+++ b/plugins/SimpleStatusMsg/src/main.cpp
@@ -1682,9 +1682,7 @@ static int CSStatusChange(WPARAM wParam, LPARAM lParam)
mir_snprintf(buff, SIZEOF(buff), "SMsg%d", j);
if (!db_get_ts(NULL, "SimpleStatusMsg", buff, &dbv))
{
-
if (!lstrcmp(dbv.ptszVal, szMsgW))
-
{
found = TRUE;
mir_snprintf(szSetting, SIZEOF(szSetting), "Last%sMsg", ps[i]->szName);
@@ -1692,6 +1690,7 @@ static int CSStatusChange(WPARAM wParam, LPARAM lParam)
db_free(&dbv);
break;
}
+ db_free(&dbv);
}
}