Changeset 11099 for trunk/gtk/tr-core.c


Ignore:
Timestamp:
Aug 2, 2010, 10:31:31 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) rewrite the main window's drag-and-drop handler s.t. it's GTK+ 3 compliant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r11088 r11099  
    12101210
    12111211    for( l = torrentFiles; l != NULL; l = l->next )
    1212         add_filename( core, l->data, doStart, doPrompt, doNotify );
     1212    {
     1213        char * filename = l->data;
     1214        add_filename( core, filename, doStart, doPrompt, doNotify );
     1215        g_free( filename );
     1216    }
    12131217
    12141218    tr_core_torrents_added( core );
    1215     freestrlist( torrentFiles );
     1219
     1220    g_slist_free( torrentFiles );
    12161221}
    12171222
Note: See TracChangeset for help on using the changeset viewer.