Changeset 5215


Ignore:
Timestamp:
Mar 7, 2008, 4:58:44 PM (14 years ago)
Author:
charles
Message:

(gtk) #769: fix a new g_warning that popped up in r5209. (infernux)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r5209 r5215  
    10381038
    10391039static void
     1040closeSelectedForeach( gpointer gtor, gpointer gdata )
     1041{
     1042    struct cbdata * data = gdata;
     1043    tr_core_remove_torrent( data->core, gtor, FALSE );
     1044}
     1045
     1046static void
    10401047closeSelected( struct cbdata * data, gboolean doDelete )
    10411048{
     
    10481055            confirmDelete( data->wind, data->core, l );
    10491056        else {
    1050             GList * m;
    1051             for( m=l; m; m=m->next )
    1052                 tr_core_remove_torrent( data->core, m->data, FALSE );
    1053             g_list_foreach( l, (GFunc)g_object_unref, NULL );
     1057            g_list_foreach( l, closeSelectedForeach, data );
    10541058            g_list_free( l );
    10551059        }
    1056          
    10571060    }
    10581061}
Note: See TracChangeset for help on using the changeset viewer.