Mercurial > pidgin.yaz
diff libpurple/protocols/msn/servconn.c @ 28731:ae7348244f56
Swap two lines to fix a crash.
msn_servconn_disconnect can destroy servconn, which makes it crash on the
next line. So reset the idle-handler before going into that function.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 11 Oct 2009 19:20:44 +0000 |
parents | 203839bc0f7c |
children | a99b6dcdb60d |
line wrap: on
line diff
--- a/libpurple/protocols/msn/servconn.c Sat Oct 10 19:47:30 2009 +0000 +++ b/libpurple/protocols/msn/servconn.c Sun Oct 11 19:20:44 2009 +0000 @@ -299,8 +299,8 @@ static gboolean servconn_idle_timeout_cb(MsnServConn *servconn) { + servconn->timeout_handle = 0; msn_servconn_disconnect(servconn); - servconn->timeout_handle = 0; /* XXX: servconn may not be valid anymore */ return FALSE; }