Changeset cc20520


Ignore:
Timestamp:
2010-12-02T12:14:09Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b41d5d2
Parents:
b11b781
Message:

Clean up pastebuf_timer when cleaning up channels, and properly clean up
channel-chatroom reference when leaving a chatroom. This fixes two very
similar crash bugs when leaving a chatroom within the paste_buffer_delay
period.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    rb11b781 rcc20520  
    142142                        iu->last_channel = irc->default_channel;
    143143        }
     144       
     145        if( ic->pastebuf_timer ) b_event_remove( ic->pastebuf_timer );
    144146       
    145147        g_free( ic->name );
  • irc_im.c

    rb11b781 rcc20520  
    794794        irc_channel_t *ic = data;
    795795       
    796         bee_chat_msg( ic->irc->b, ic->data, ic->pastebuf->str, 0 );
     796        if( ic->data )
     797                bee_chat_msg( ic->irc->b, ic->data, ic->pastebuf->str, 0 );
    797798       
    798799        g_string_free( ic->pastebuf, TRUE );
     
    840841        if( c && c->ic->acc->prpl->chat_leave )
    841842                c->ic->acc->prpl->chat_leave( c );
     843       
     844        ic->data = NULL;
    842845       
    843846        return TRUE;
Note: See TracChangeset for help on using the changeset viewer.