Changeset 3907


Ignore:
Timestamp:
2011-12-29 12:16:28 (2 years ago)
Author:
drobilla
Message:

Destroy UI instance before shutting down Gtk (fix messy shutdown).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jalv/src/jalv_gtk2.c

    r3898 r3907  
    2323                  gpointer   data) 
    2424{ 
     25    Jalv* jalv = (Jalv*)data; 
     26    suil_instance_free(jalv->ui_instance); 
     27    jalv->ui_instance = NULL; 
    2528    gtk_main_quit(); 
    2629} 
     
    179182 
    180183    g_signal_connect(window, "destroy", 
    181                      G_CALLBACK(on_window_destroy), NULL); 
     184                     G_CALLBACK(on_window_destroy), jalv); 
    182185 
    183186    gtk_window_set_title(GTK_WINDOW(window), 
Note: See TracChangeset for help on using the changeset viewer.