brasero r1868 - in trunk: . src/plugins/cdrkit



Author: philippr
Date: Wed Feb  4 14:58:03 2009
New Revision: 1868
URL: http://svn.gnome.org/viewvc/brasero?rev=1868&view=rev

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

	* src/plugins/cdrkit/burn-wodim.c (brasero_wodim_write_inf),
	(brasero_wodim_write_infs): Don't leak album and string


Modified:
   trunk/ChangeLog
   trunk/src/plugins/cdrkit/burn-wodim.c

Modified: trunk/src/plugins/cdrkit/burn-wodim.c
==============================================================================
--- trunk/src/plugins/cdrkit/burn-wodim.c	(original)
+++ trunk/src/plugins/cdrkit/burn-wodim.c	Wed Feb  4 14:58:03 2009
@@ -623,6 +623,8 @@
 
 	size = strlen (string);
 	b_written = write (fd, string, size);
+	g_free (string);
+
 	if (b_written != size)
 		goto error;
 
@@ -699,6 +701,7 @@
 		start += BRASERO_DURATION_TO_SECTORS (length);
 	}
 
+	g_free (album);
 	g_free (tmpdir);
 
 	return BRASERO_BURN_OK;



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