[gtk+] Plug another memory leak in plugman
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Plug another memory leak in plugman
- Date: Sun, 1 Feb 2015 16:07:53 +0000 (UTC)
commit 4a531ec6ab04d7a9ebd3e3e1ea1060f811555173
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 1 11:07:12 2015 -0500
Plug another memory leak in plugman
examples/plugman.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/examples/plugman.c b/examples/plugman.c
index 53f502e..3e7e02a 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[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]