Mercurial > pidgin.yaz
diff libpurple/roomlist.c @ 24543:c1f954e51389
Fix a crash that happens when accessing the roomlist for an account that's
not connected. Fixes #7707.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 06 Dec 2008 05:14:07 +0000 |
parents | d18f44ae1143 |
children | f1437342cc0e |
line wrap: on
line diff
--- a/libpurple/roomlist.c Sat Dec 06 05:05:02 2008 +0000 +++ b/libpurple/roomlist.c Sat Dec 06 05:14:07 2008 +0000 @@ -173,6 +173,7 @@ PurplePluginProtocolInfo *prpl_info = NULL; g_return_val_if_fail(gc != NULL, NULL); + g_return_val_if_fail(PURPLE_CONNECTION_IS_CONNECTED(gc), NULL); prpl = purple_connection_get_prpl(gc);