Mercurial > hg
diff mcabber/src/jabglue.c @ 774:46304b773a44
Remove useless checks before g_free() calls
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 25 Mar 2006 18:16:10 +0100 |
parents | 464be13343a9 |
children | 898dd706cc5c |
line wrap: on
line diff
--- a/mcabber/src/jabglue.c Sat Mar 25 18:14:37 2006 +0100 +++ b/mcabber/src/jabglue.c Sat Mar 25 18:16:10 2006 +0100 @@ -367,8 +367,7 @@ hk_mystatuschange(0, mystatus, st, (st != invisible ? msg : "")); mystatus = st; if (msg != mystatusmsg) { - if (mystatusmsg) - g_free(mystatusmsg); + g_free(mystatusmsg); if (*msg) mystatusmsg = g_strdup(msg); else @@ -1318,8 +1317,7 @@ } if (from && body) gotmessage(type, from, body, enc, timestamp); - if (tmp) - g_free(tmp); + g_free(tmp); } static void evscallback_subscription(eviqs *evp, guint evcontext)