aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--protocols/twitter/twitter.c3
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 )
{