From a15cd68f0412e1b211e746a2e4d5682e96f5a113 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Aug 2015 13:52:01 +0000 Subject: code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14911 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YahooGroups/src/utils.cpp | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'plugins/YahooGroups/src/utils.cpp') diff --git a/plugins/YahooGroups/src/utils.cpp b/plugins/YahooGroups/src/utils.cpp index 383d001007..a811bc5e64 100644 --- a/plugins/YahooGroups/src/utils.cpp +++ b/plugins/YahooGroups/src/utils.cpp @@ -226,18 +226,13 @@ TCHAR *GetContactName(MCONTACT hContact, char *szProto) //_debug_message(" contact name %s", ctInfo.pszVal); TCHAR *buffer; if (!ret) - { - buffer = _tcsdup(ctInfo.pszVal); - } + buffer = _tcsdup(ctInfo.pszVal); + mir_free(ctInfo.pszVal); if (!ret) - { - return buffer; - } - else{ - return NULL; - } - return buffer; + return buffer; + + return NULL; } void GetContactProtocol(MCONTACT hContact, char *szProto, int size) @@ -306,12 +301,9 @@ TCHAR *GetContactID(MCONTACT hContact, char *szProto) } mir_free(ctInfo.pszVal); if (!ret) - { - return buffer; - } - else{ - return NULL; - } + return buffer; + + return NULL; } MCONTACT GetContactFromID(TCHAR *szID, char *szProto) -- cgit v1.2.3