[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix memory leak when showing preferences dialog
noreply at xfce.org
noreply at xfce.org
Wed Sep 21 12:37:18 CEST 2016
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.
commit 432ed2aa3e2645b814de6ca3a030cd7620a9032a
Author: Igor <f2404 at yandex.ru>
Date: Wed Sep 21 13:37:12 2016 +0300
Fix memory leak when showing preferences dialog
---
terminal/terminal-preferences-dialog.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/terminal/terminal-preferences-dialog.c b/terminal/terminal-preferences-dialog.c
index 80b5cdf..8b0e868 100644
--- a/terminal/terminal-preferences-dialog.c
+++ b/terminal/terminal-preferences-dialog.c
@@ -132,6 +132,7 @@ terminal_preferences_dialog_init (TerminalPreferencesDialog *dialog)
gchar palette_name[16];
GtkFileFilter *filter;
gchar *file;
+ guint res;
GBinding *binding;
GtkTreeModel *model;
gchar *current;
@@ -180,7 +181,10 @@ terminal_preferences_dialog_init (TerminalPreferencesDialog *dialog)
}
/* load the builder data into the object */
- if (gtk_builder_add_from_file (GTK_BUILDER (dialog), file, &error) == 0)
+ res = gtk_builder_add_from_file (GTK_BUILDER (dialog), file, &error);
+ g_free (file);
+
+ if (res == 0)
{
error:
g_critical ("Failed to load ui file: %s.", error->message);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list