From 84cf0df2cfdd8505c49d6ae764ea8dbac01e6631 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 25 May 2015 13:15:30 +0200 Subject: [PATCH] Always destroy the window ourselves --- tools/widget.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/widget.c b/tools/widget.c index d81a272..a5728d8 100644 --- a/tools/widget.c +++ b/tools/widget.c @@ -66,12 +66,14 @@ static int _widget(int namec, char ** namev) gtk_container_add(GTK_CONTAINER(window), box); gtk_widget_show_all(window); gtk_main(); + gtk_widget_destroy(window); return ret; } static gboolean _widget_on_closex(gpointer data) { gtk_main_quit(); + return TRUE; }