summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/messages.cpp
diff options
context:
space:
mode:
authorAlexander Gluzsky <sss123next@list.ru>2013-07-31 23:16:34 +0000
committerAlexander Gluzsky <sss123next@list.ru>2013-07-31 23:16:34 +0000
commitdaf3e389b479f28b306e7c88ecc49119f0bbf542 (patch)
tree8858bf836dc1009ddaf1718525ff8965fd127754 /plugins/New_GPG/src/messages.cpp
parent971d0acab1eb3c9405e8b0e8d839c3f751af2e5b (diff)
fixed few logic bugs
fixed few memory leaks prevent db helper functions from returning uninitialized ptr git-svn-id: http://svn.miranda-ng.org/main/trunk@5542 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src/messages.cpp')
-rwxr-xr-xplugins/New_GPG/src/messages.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/New_GPG/src/messages.cpp b/plugins/New_GPG/src/messages.cpp
index 5c702b7484..add6cd23ae 100755
--- a/plugins/New_GPG/src/messages.cpp
+++ b/plugins/New_GPG/src/messages.cpp
@@ -596,6 +596,7 @@ INT_PTR RecvMsgSvc(WPARAM w, LPARAM l)
}
}
}
+ mir_free(jid);
}
}
if(!strstr(msg, "-----BEGIN PGP MESSAGE-----"))
@@ -933,6 +934,7 @@ int HookSendMsg(WPARAM w, LPARAM l)
}
}
}
+ mir_free(jid);
}
}
else
@@ -1023,6 +1025,7 @@ static INT_PTR CALLBACK DlgProcKeyPassword(HWND hwndDlg, UINT msg, WPARAM wParam
TranslateDialogDefault(hwndDlg);
string questionstr = "Please enter password for key with ID: ";
questionstr += inkeyid;
+ mir_free(inkeyid);
SetDlgItemTextA(hwndDlg, IDC_KEYID, questionstr.c_str());
EnableWindow(GetDlgItem(hwndDlg, IDC_DEFAULT_PASSWORD), 0);
return TRUE;