diff options
Diffstat (limited to 'protocols/twitter/twitter.c')
| -rw-r--r-- | protocols/twitter/twitter.c | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index b619b1e5..a8103cca 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -677,14 +677,14 @@ static void twitter_logout(struct im_connection *ic)  	// Set the status to logged out.  	ic->flags &= ~OPT_LOGGED_IN; -	// Remove the main_loop function from the function queue. -	b_event_remove(td->main_loop_id); +	if (td) { +		// Remove the main_loop function from the function queue. +		b_event_remove(td->main_loop_id); -	if (td->timeline_gc) { -		imcb_chat_free(td->timeline_gc); -	} +		if (td->timeline_gc) { +			imcb_chat_free(td->timeline_gc); +		} -	if (td) {  		if (td->filter_update_id > 0) {  			b_event_remove(td->filter_update_id);  		} | 
