diff options
author | David Robillard <d@drobilla.net> | 2017-04-26 09:24:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 09:24:04 +0200 |
commit | cc8ba9f7d1874594b1c1d857786ed2e22535dd73 (patch) | |
tree | f6466cac810ea37e44bb59d2f479b78b07ddc815 | |
parent | 5f015f74427e39ca411032f5f42bc969f89cf9fe (diff) | |
parent | 203dbf3b79fa74e8272aa92ac1c72c6e51602703 (diff) | |
download | jalv-cc8ba9f7d1874594b1c1d857786ed2e22535dd73.tar.gz jalv-cc8ba9f7d1874594b1c1d857786ed2e22535dd73.tar.bz2 jalv-cc8ba9f7d1874594b1c1d857786ed2e22535dd73.zip |
Merge pull request #1 from smbolton/master
Fix use-after-free in jalv_gtk.c
-rw-r--r-- | src/jalv_gtk.c | 4 |
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; } |