brasero r1938 - in trunk: . src/plugins/local-track



Author: philippr
Date: Tue Feb 17 07:25:30 2009
New Revision: 1938
URL: http://svn.gnome.org/viewvc/brasero?rev=1938&view=rev

Log:
2009-02-17  Philippe Rouquier  <ykw localhost localdomain>

	Don't leak GFileInfo when the path already exists in the graft path list
	(Introduced by recent changes)

	* src/plugins/local-track/burn-uri.c
	(brasero_burn_uri_explore_directory):

Modified:
   trunk/ChangeLog
   trunk/src/plugins/local-track/burn-uri.c

Modified: trunk/src/plugins/local-track/burn-uri.c
==============================================================================
--- trunk/src/plugins/local-track/burn-uri.c	(original)
+++ trunk/src/plugins/local-track/burn-uri.c	Tue Feb 17 07:25:30 2009
@@ -149,6 +149,7 @@
 			disc_path = g_build_filename (path, g_file_info_get_name (info), G_DIR_SEPARATOR_S, NULL);
 			if (g_slist_find_custom (current_grafts, disc_path, (GCompareFunc) brasero_burn_uri_find_graft)) {
 				BRASERO_JOB_LOG (self, "Graft already in list %s", disc_path);
+				g_object_unref (info);
 				g_free (disc_path);
 				continue;
 			}
@@ -201,6 +202,7 @@
 			disc_path = g_build_filename (path, g_file_info_get_name (info), NULL);
 			if (g_slist_find_custom (current_grafts, disc_path, (GCompareFunc) brasero_burn_uri_find_graft)) {
 				BRASERO_JOB_LOG (self, "Graft already in list %s", disc_path);
+				g_object_unref (info);
 				g_free (disc_path);
 				continue;
 			}



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