[Xfce4-commits] <xfdesktop:eric/settings-changes> Fix memory leaks in the settings app
Eric Koegel
noreply at xfce.org
Sun Oct 27 09:06:03 CET 2013
Updating branch refs/heads/eric/settings-changes
to f6a34c5144f05eaf8327eca02da724353c542dff (commit)
from ee9c70df22b26648ec734e84181f4bf27a892aec (commit)
commit f6a34c5144f05eaf8327eca02da724353c542dff
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Sun Oct 27 10:59:48 2013 +0300
Fix memory leaks in the settings app
settings/main.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/settings/main.c b/settings/main.c
index 86d4bbd..f5d59dd 100644
--- a/settings/main.c
+++ b/settings/main.c
@@ -305,7 +305,7 @@ xfdesktop_settings_queue_preview(GtkTreeModel *model,
GtkTreeIter *iter,
AppearancePanel *panel)
{
- gchar *filename;
+ gchar *filename = NULL;
gtk_tree_model_get(model, iter, COL_FILENAME, &filename, -1);
@@ -319,6 +319,9 @@ xfdesktop_settings_queue_preview(GtkTreeModel *model,
xfdesktop_settings_add_file_to_queue(panel, pdata);
}
+
+ if(filename)
+ g_free(filename);
}
static void
@@ -1430,6 +1433,8 @@ cb_update_background_tab(WnckWindow *wnck_window,
if(panel->monitor_name != NULL)
g_free(panel->monitor_name);
+ if(monitor_name != NULL)
+ g_free(monitor_name);
panel->workspace = workspace_num;
panel->screen = screen_num;
More information about the Xfce4-commits
mailing list