summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-08-15 11:33:35 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-08-15 11:33:35 +0000
commitde6edc08ee0c1faffb6456abc31fc9bd8a5b0e32 (patch)
tree0cbd2f129c3407707f46939458fdebcd306ac9da /plugins/StatusPlugins/KeepStatus/keepstatus.cpp
parent761620b2f9291f8e45816c7c93cbbbbf97b06254 (diff)
StatusPlugins:
- Minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14959 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins/KeepStatus/keepstatus.cpp')
-rw-r--r--plugins/StatusPlugins/KeepStatus/keepstatus.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/StatusPlugins/KeepStatus/keepstatus.cpp b/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
index 548d07cb7b..97d0b6f634 100644
--- a/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
+++ b/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
@@ -179,6 +179,7 @@ static PROTOCOLSETTINGEX** GetCurrentProtoSettingsCopy()
for (int i = 0; i < connectionSettings.getCount(); i++) {
ps[i] = (PROTOCOLSETTINGEX*)calloc(1, sizeof(PROTOCOLSETTINGEX));
if (ps[i] == NULL) {
+ free(ps);
return NULL;
}
@@ -571,7 +572,7 @@ static int ProcessProtoAck(WPARAM, LPARAM lParam)
case LOGINERR_SETDELAY:
{
- int newDelay = newDelay = 1000 * db_get_dw(NULL, MODULENAME, SETTING_LOGINERR_DELAY, DEFAULT_MAXDELAY);
+ int newDelay = 1000 * db_get_dw(NULL, MODULENAME, SETTING_LOGINERR_DELAY, DEFAULT_MAXDELAY);
log_infoA("KeepStatus: set delay to %d on login error (%s)", newDelay / 1000, ack->szModule);
StartTimer(IDT_CHECKCONN, newDelay, TRUE);
}