Mercurial > pidgin
diff src/server.c @ 14035:8bda65b88e49
[gaim-migrate @ 16638]
A bunch of small changes. Mostly remove "if not null" checks before
calling g_free, g_list_free, g_slist_free and g_strdup. Also use
g_list_foreach() to call g_free to free strings in an array. And
some whitespace changes here and there.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 05 Aug 2006 08:27:39 +0000 |
parents | ad171112d52c |
children |
line wrap: on
line diff
--- a/src/server.c Sat Aug 05 05:42:28 2006 +0000 +++ b/src/server.c Sat Aug 05 08:27:39 2006 +0000 @@ -366,8 +366,7 @@ gaim_signal_emit(gaim_conversations_get_handle(), "chat-invited-user", conv, name, buffy); - if (buffy) - g_free(buffy); + g_free(buffy); } /* Ya know, nothing uses this except gaim_conversation_destroy(), @@ -471,10 +470,8 @@ &angel, &buffy, cnv, &flags)); if (!buffy || !angel || plugin_return) { - if (buffy) - g_free(buffy); - if (angel) - g_free(angel); + g_free(buffy); + g_free(angel); return; } @@ -563,7 +560,7 @@ * _next_ message, so we still set lar->sent to now. */ lar->sent = now; - + if (!(flags & GAIM_MESSAGE_AUTO_RESP)) { serv_send_im(gc, name, away_msg, GAIM_MESSAGE_AUTO_RESP);