[brasero] Fix memleak
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix memleak
- Date: Thu, 30 Jul 2009 07:34:40 +0000 (UTC)
commit 2f31cdd14010bbce3e7a8f52ebc745ba33771a3f
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue Jul 28 14:49:55 2009 +0200
Fix memleak
libbrasero-burn/brasero-drive-properties.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-burn/brasero-drive-properties.c b/libbrasero-burn/brasero-drive-properties.c
index d47b786..71944f2 100644
--- a/libbrasero-burn/brasero-drive-properties.c
+++ b/libbrasero-burn/brasero-drive-properties.c
@@ -194,10 +194,11 @@ brasero_drive_properties_set_tmpdir_info (BraseroDriveProperties *self,
G_FILE_ATTRIBUTE_FILESYSTEM_FREE,
NULL,
NULL);
+ g_object_unref (file);
+
if (!info) {
BRASERO_BURN_LOG ("Impossible to retrieve size for %s", path);
gtk_label_set_text (GTK_LABEL (priv->tmpdir), path);
- g_object_unref (file);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]