From 37e5a98b8a26c3c62edbadb073485ec129b8d66c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 4 Jan 2014 22:28:29 +0000 Subject: two memory leaks in Jabber git-svn-id: http://svn.miranda-ng.org/main/trunk@7507 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TipperYM/src/subst.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/TipperYM/src') 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; } -- cgit v1.2.3