[eog] Plug a couple of leaks



commit 1598fb646b4e1218df065ed0937926d761e3a8be
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Sep 9 02:09:40 2010 +0300

    Plug a couple of leaks

 src/eog-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index bee918e..c3f2068 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -2646,6 +2646,8 @@ eog_job_copy_cb (EogJobCopy *job, gpointer user_data)
 	filename = g_strdup_printf  ("%s.%s", EOG_WALLPAPER_FILENAME, extension);
 	filepath = g_build_filename (job->dest, filename, NULL);
 	dest_file = g_file_new_for_path (filepath);
+	g_free (filename);
+	g_free (extension);
 
 	/* Move the file */
 	g_file_move (source_file, dest_file, G_FILE_COPY_OVERWRITE,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]