comparison 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
comparison
equal deleted inserted replaced
773:e25b8a348ebd 774:46304b773a44
365 update_roster = TRUE; 365 update_roster = TRUE;
366 366
367 hk_mystatuschange(0, mystatus, st, (st != invisible ? msg : "")); 367 hk_mystatuschange(0, mystatus, st, (st != invisible ? msg : ""));
368 mystatus = st; 368 mystatus = st;
369 if (msg != mystatusmsg) { 369 if (msg != mystatusmsg) {
370 if (mystatusmsg) 370 g_free(mystatusmsg);
371 g_free(mystatusmsg);
372 if (*msg) 371 if (*msg)
373 mystatusmsg = g_strdup(msg); 372 mystatusmsg = g_strdup(msg);
374 else 373 else
375 mystatusmsg = NULL; 374 mystatusmsg = NULL;
376 } 375 }
1316 if ((x = xmlnode_get_tag(xmldata, TMSG_ERROR)) != NULL) 1315 if ((x = xmlnode_get_tag(xmldata, TMSG_ERROR)) != NULL)
1317 display_server_error(x); 1316 display_server_error(x);
1318 } 1317 }
1319 if (from && body) 1318 if (from && body)
1320 gotmessage(type, from, body, enc, timestamp); 1319 gotmessage(type, from, body, enc, timestamp);
1321 if (tmp) 1320 g_free(tmp);
1322 g_free(tmp);
1323 } 1321 }
1324 1322
1325 static void evscallback_subscription(eviqs *evp, guint evcontext) 1323 static void evscallback_subscription(eviqs *evp, guint evcontext)
1326 { 1324 {
1327 char *barejid; 1325 char *barejid;