Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/histolog.c @ 1682:d1e8fb14ce2d
Destroy lm connection object on disconnect
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Tue, 19 Jan 2010 09:53:12 +0200 |
parents | 41c26b7d2890 |
children | 95df4ea512c8 |
line wrap: on
line diff
--- a/mcabber/mcabber/histolog.c Tue Jan 19 15:45:25 2010 +0200 +++ b/mcabber/mcabber/histolog.c Tue Jan 19 09:53:12 2010 +0200 @@ -445,7 +445,7 @@ goto hlog_save_state_return; } - if (!lm_connection_is_authenticated(lconnection)) { + if (!lconnection || !lm_connection_is_authenticated(lconnection)) { // We're not connected. Let's use the unread_jids hash. GList *unread_jid = unread_jid_get_list(); unread_ptr = unread_jid;