diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-04 22:28:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-04 22:28:29 +0000 |
commit | 37e5a98b8a26c3c62edbadb073485ec129b8d66c (patch) | |
tree | 419bc1da729e3e949682888631ca4395f5a29dc9 /plugins/TipperYM/src/subst.cpp | |
parent | 2a25840c67e5a8d8fa88ee37f90414dd546726f7 (diff) |
two memory leaks in Jabber
git-svn-id: http://svn.miranda-ng.org/main/trunk@7507 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/src/subst.cpp')
-rw-r--r-- | plugins/TipperYM/src/subst.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp index 6fdf551015..74d6990c98 100644 --- a/plugins/TipperYM/src/subst.cpp +++ b/plugins/TipperYM/src/subst.cpp @@ -887,8 +887,7 @@ TCHAR *GetProtoExtraStatusMessage(char *szProto) if (!szProto)
return NULL;
- if (!db_get_ts(0, szProto, "XStatusMsg", &dbv))
- {
+ if (!db_get_ts(0, szProto, "XStatusMsg", &dbv)) {
if (_tcslen(dbv.ptszVal) != 0)
swzText = mir_tstrdup(dbv.ptszVal);
db_free(&dbv);
@@ -896,15 +895,11 @@ TCHAR *GetProtoExtraStatusMessage(char *szProto) if (ServiceExists(MS_VARS_FORMATSTRING)) {
HANDLE hContact = db_find_first();
char *proto = GetContactProto(hContact);
- while(!proto)
- {
+ while(!proto) {
hContact = db_find_next(hContact);
if (hContact)
- {
proto = GetContactProto(hContact);
- }
- else
- {
+ else {
hContact = NULL;
break;
}
|