From 4a531ec6ab04d7a9ebd3e3e1ea1060f811555173 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 1 Feb 2015 11:07:12 -0500 Subject: [PATCH] Plug another memory leak in plugman --- examples/plugman.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/plugman.c b/examples/plugman.c index 53f502e3e3..3e7e02aeee 100644 --- a/examples/plugman.c +++ b/examples/plugman.c @@ -359,7 +359,7 @@ configure_plugins (GSimpleAction *action, { g_warning ("%s", error->message); g_error_free (error); - return; + goto out; } dialog = (GtkWidget *)gtk_builder_get_object (builder, "plugin-dialog"); @@ -373,6 +373,9 @@ configure_plugins (GSimpleAction *action, g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL); gtk_window_present (GTK_WINDOW (dialog)); + +out: + g_object_unref (builder); } static GActionEntry app_entries[] = {