Changeset 8319


Ignore:
Timestamp:
May 2, 2009, 3:17:03 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) fix possible crash in the properties dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r8283 r8319  
    13321332    else if( !strcmp( action_name, "show-torrent-properties" ) )
    13331333    {
    1334         if( data->details == NULL )
     1334        if( data->details == NULL ) {
    13351335            data->details = torrent_inspector_new( GTK_WINDOW( data->wind ), data->core );
     1336            g_object_add_weak_pointer( G_OBJECT( data->details ), (gpointer*)&data->details );
     1337        }
    13361338        refreshDetailsDialog( data );
    13371339        gtk_widget_show( data->details );
Note: See TracChangeset for help on using the changeset viewer.