Mercurial > pidgin.yaz
changeset 30158:0f895633faeb
jabber: Stifle an assertion warning.
A connection error may occur before this is allocated.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 17 Apr 2010 21:16:19 +0000 |
parents | 37be7bc87ab2 |
children | 6eeb50155af8 |
files | libpurple/protocols/jabber/jabber.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Sat Apr 17 21:13:50 2010 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sat Apr 17 21:16:19 2010 +0000 @@ -1540,7 +1540,8 @@ g_free(js->avatar_hash); g_free(js->caps_hash); - purple_circ_buffer_destroy(js->write_buffer); + if (js->write_buffer) + purple_circ_buffer_destroy(js->write_buffer); if(js->writeh) purple_input_remove(js->writeh); if (js->auth_mech && js->auth_mech->dispose)