Changeset 12154


Ignore:
Timestamp:
Mar 13, 2011, 4:45:32 PM (11 years ago)
Author:
jordan
Message:

(trunk gtk) fix condition that could crash in some cases when right-clicking in the file list menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/file-list.c

    r12068 r12154  
    771771    if(( tor = gtr_core_find_torrent( data->core, data->torrentId )))
    772772    {
    773         GtkTreePath * path;
    774773        GtkTreeViewColumn * col;
     774        GtkTreePath * path = NULL;
    775775        GtkTreeView * treeview = GTK_TREE_VIEW( w );
    776776
     
    780780            handled = onViewPathToggled( treeview, col, path, data );
    781781
    782         gtk_tree_path_free( path );
     782        if( path != NULL )
     783            gtk_tree_path_free( path );
    783784    }
    784785
Note: See TracChangeset for help on using the changeset viewer.