brasero r1497 - in trunk: . src



Author: philippr
Date: Sat Nov  8 16:59:16 2008
New Revision: 1497
URL: http://svn.gnome.org/viewvc/brasero?rev=1497&view=rev

Log:
	fix memory leaks

	* src/brasero-data-disc.c (brasero_data_disc_session_available_cb):
	* src/brasero-project.c (brasero_project_open_project):


Modified:
   trunk/ChangeLog
   trunk/src/brasero-data-disc.c
   trunk/src/brasero-project.c

Modified: trunk/src/brasero-data-disc.c
==============================================================================
--- trunk/src/brasero-data-disc.c	(original)
+++ trunk/src/brasero-data-disc.c	Sat Nov  8 16:59:16 2008
@@ -1265,6 +1265,7 @@
 						      10000,
 						      BRASERO_NOTIFY_CONTEXT_MULTISESSION);
 		g_free (volume_name);
+		g_free (string);
 
 		brasero_disc_message_set_image (BRASERO_DISC_MESSAGE (message),
 						GTK_STOCK_DIALOG_INFO);

Modified: trunk/src/brasero-project.c
==============================================================================
--- trunk/src/brasero-project.c	(original)
+++ trunk/src/brasero-project.c	Sat Nov  8 16:59:16 2008
@@ -2004,7 +2004,9 @@
 	g_signal_handlers_block_by_func (project->priv->name_display,
 					 brasero_project_name_changed_cb,
 					 project);
-	gtk_entry_set_text (GTK_ENTRY (project->priv->name_display), (gchar *) label);
+	gtk_entry_set_text (GTK_ENTRY (project->priv->name_display), label);
+	g_free (label);
+
 	g_signal_handlers_unblock_by_func (project->priv->name_display,
 					   brasero_project_name_changed_cb,
 					   project);



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