aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_gtk.c
diff options
context:
space:
mode:
authorSean Bolton <sean@smbolton.com>2017-03-05 20:04:28 -0800
committerSean Bolton <sean@smbolton.com>2017-03-05 20:04:28 -0800
commit203dbf3b79fa74e8272aa92ac1c72c6e51602703 (patch)
treeb6beeb50d1f80b9e3c54ee31d62752e4da10d15e /src/jalv_gtk.c
parent1c54807896b84be490f93b9a7ee546204517af6f (diff)
downloadjalv-203dbf3b79fa74e8272aa92ac1c72c6e51602703.tar.gz
jalv-203dbf3b79fa74e8272aa92ac1c72c6e51602703.tar.bz2
jalv-203dbf3b79fa74e8272aa92ac1c72c6e51602703.zip
Fix use-after-free in jalv_gtk.c
Diffstat (limited to 'src/jalv_gtk.c')
-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;
}