diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-08 01:51:16 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-08 01:51:16 +0100 |
commit | 37d84b32ca7f02f2e3b05858e090e2470b8c479b (patch) | |
tree | 3156bd9d0002c2051806f168ddc224a55d20cc29 | |
parent | 08579a1e871216a7bd7e50315894b6aeed6354ea (diff) |
Don't free the Twitter chatroom if there isn't one..
-rw-r--r-- | protocols/twitter/twitter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 812e0796..dcbcfdfb 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -100,7 +100,8 @@ static void twitter_logout( struct im_connection *ic ) // Remove the main_loop function from the function queue. b_event_remove(td->main_loop_id); - imcb_chat_free(td->home_timeline_gc); + if(td->home_timeline_gc) + imcb_chat_free(td->home_timeline_gc); if( td ) { |