Changeset 9759


Ignore:
Timestamp:
Dec 14, 2009, 6:20:11 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) #2500 "Torrent details window should be single-instance per torrent" -- fix implementation bug from r9685 that caused the same memory to be freed twice on shutdown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r9758 r9759  
    782782
    783783    /* shutdown the gui */
    784     if( cbdata->details != NULL )
    785     {
    786         GSList * l;
    787         for( l=cbdata->details; l!=NULL; l=l->next )
    788         {
    789             struct DetailsDialogHandle * h = l->data;
    790             gtk_widget_destroy( h->dialog );
    791             g_free( h->key );
    792             g_free( h );
    793         }
    794         g_slist_free( cbdata->details );
    795         cbdata->details = NULL;
     784    while( cbdata->details != NULL ) {
     785        struct DetailsDialogHandle * h = cbdata->details->data;
     786        gtk_widget_destroy( h->dialog );
    796787    }
    797788
Note: See TracChangeset for help on using the changeset viewer.