diff options
Diffstat (limited to 'plugins/NewXstatusNotify')
-rw-r--r-- | plugins/NewXstatusNotify/main.cpp | 5 |
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;
}
|