[brasero] Fix memleak



commit f5a07ca47731fd2880e57c99168884bfe11fbe90
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Wed Aug 26 15:16:39 2009 +0200

    Fix memleak

 libbrasero-burn/brasero-src-image.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libbrasero-burn/brasero-src-image.c b/libbrasero-burn/brasero-src-image.c
index b0497bc..b367a4e 100644
--- a/libbrasero-burn/brasero-src-image.c
+++ b/libbrasero-burn/brasero-src-image.c
@@ -230,12 +230,16 @@ brasero_src_image_update (BraseroSrcImage *self)
 	status = brasero_status_new ();
 	result = brasero_track_get_status (BRASERO_TRACK (priv->track), status);
 	if (result == BRASERO_BURN_NOT_READY) {
+		g_free (path);
+
 		/* Translators: %s is a path */
 		string = g_strdup_printf (_("\"%s\": loading"), path);
 		gtk_widget_set_tooltip_text (GTK_WIDGET (self), NULL);
 		goto end;
 	}
 	else if (result != BRASERO_BURN_OK) {
+		g_free (path);
+
 		/* Translators: %s is a path and image refers to a disc image */
 		string = g_strdup_printf (_("\"%s\": unknown disc image type"), path);
 



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