[Pidgin] #8774: Pidgin 2.5.5+ crashes on quit with chat rooms open
    Pidgin 
    trac at pidgin.im
       
    Thu Apr  2 01:25:44 EDT 2009
    
    
  
#8774: Pidgin 2.5.5+ crashes on quit with chat rooms open
------------------------+---------------------------------------------------
 Reporter:  darkrain42  |        Owner:           
     Type:  defect      |       Status:  new      
Milestone:  2.6.0       |    Component:  libpurple
  Version:  2.5.5       |   Resolution:           
 Keywords:              |  
------------------------+---------------------------------------------------
Comment(by QuLogic):
 Now, I may not be correct, but I think there could be a problem here:
 {{{
 for (l = plugins; l; l = l->next) {
     PurplePlugin *plugin = l->data;
     if (plugin->info->type == type && purple_plugin_is_loaded(plugin))
         purple_plugin_unload(plugin);
 }
 }}}
 You have `l`, then you unload that plugin. Now one of two things should
 happen there (I haven't checked the unload function). In one case, the
 plugin is removed from the `GList`, and I assume `l` gets freed when that
 happens, so `l->next` might crash. In the other case, `l` is not removed
 from the `GList`, so you need to remove it or it'll get unloaded twice.
-- 
Ticket URL: <http://developer.pidgin.im/ticket/8774#comment:15>
Pidgin <http://pidgin.im>
Pidgin
    
    
More information about the Tracker
mailing list