Changeset 11547


Ignore:
Timestamp:
Dec 19, 2010, 9:50:28 AM (11 years ago)
Author:
charles
Message:

(trunk gtk_) #3837 "Dangling pointer after quit cancel" -- fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r11546 r11547  
    8989    GSList            * details;
    9090    GtkTreeSelection  * sel;
    91     GtkWidget         * quit_dialog;
     91    gpointer            quit_dialog;
    9292};
    9393
     
    975975        wannaquit( cbdata );
    976976    else {
    977         if( cbdata->quit_dialog == NULL )
     977        if( cbdata->quit_dialog == NULL ) {
    978978            cbdata->quit_dialog = askquit( cbdata->core, cbdata->wind, wannaquit, cbdata );
     979            g_object_add_weak_pointer( G_OBJECT( cbdata->quit_dialog ), &cbdata->quit_dialog );
     980        }
    979981        gtk_window_present( GTK_WINDOW( cbdata->quit_dialog ) );
    980982    }
Note: See TracChangeset for help on using the changeset viewer.