aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jalv_gtk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c
index 45a5142..ab94c71 100644
--- a/src/jalv_gtk.c
+++ b/src/jalv_gtk.c
@@ -91,8 +91,6 @@ on_window_destroy(GtkWidget* widget,
gpointer data)
{
Jalv* jalv = (Jalv*)data;
- suil_instance_free(jalv->ui_instance);
- jalv->ui_instance = NULL;
gtk_main_quit();
}
@@ -1226,6 +1224,8 @@ jalv_open_ui(Jalv* jalv)
gtk_window_present(GTK_WINDOW(window));
gtk_main();
+ suil_instance_free(jalv->ui_instance);
+ jalv->ui_instance = NULL;
zix_sem_post(jalv->done);
return 0;
}