summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-02-01 11:07:12 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-02-01 11:07:12 -0500
commit4a531ec6ab04d7a9ebd3e3e1ea1060f811555173 (patch)
tree41c0b9d1ead2dc0e41741ac69f0f86ec7f84276a /examples
parentf7803704993d1b306cb46052fd58fd02a9e20a23 (diff)
downloadgtk+-4a531ec6ab04d7a9ebd3e3e1ea1060f811555173.tar.gz
Plug another memory leak in plugman
Diffstat (limited to 'examples')
-rw-r--r--examples/plugman.c5
1 files changed, 4 insertions, 1 deletions
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[] = {