summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-14 14:57:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-14 14:57:37 +0000
commit3d64cefb8851fcf43b9c6109abdddaf71e340a71 (patch)
tree570472c4a55ca462fe9e5049a91702859eeb0fed /plugins/NewXstatusNotify
parent1d680ee8c0f9b0c2a421a778cb50152581dc2873 (diff)
- various leaks
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@965 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify')
-rw-r--r--plugins/NewXstatusNotify/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/NewXstatusNotify/main.cpp b/plugins/NewXstatusNotify/main.cpp
index a71122551c..3a926259dc 100644
--- a/plugins/NewXstatusNotify/main.cpp
+++ b/plugins/NewXstatusNotify/main.cpp
@@ -580,10 +580,11 @@ int ProcessStatus(DBCONTACTWRITESETTING *cws, HANDLE hContact)
BOOL retem = TRUE, rettime = TRUE;
DBVARIANT dbv;
- if (!DBGetContactSettingString(hContact, "Protocol", "p", &dbv))
- {
+ if ( !DBGetContactSettingString(hContact, "Protocol", "p", &dbv)) {
char dbSetting[128];
mir_snprintf(dbSetting, SIZEOF(dbSetting), "%s_enabled", dbv.pszVal);
+ db_free(&dbv);
+
if (!DBGetContactSettingByte(NULL, MODULE, dbSetting, 1))
return 0;
}