[brasero] Fix leaking of GDrive object
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix leaking of GDrive object
- Date: Fri, 16 Oct 2009 15:59:43 +0000 (UTC)
commit be4c565fed4e0147c7eb19cca39bc744cea3e8fe
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Thu Oct 15 12:42:33 2009 +0200
Fix leaking of GDrive object
libbrasero-media/brasero-medium-monitor.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libbrasero-media/brasero-medium-monitor.c b/libbrasero-media/brasero-medium-monitor.c
index 770207b..7f41605 100644
--- a/libbrasero-media/brasero-medium-monitor.c
+++ b/libbrasero-media/brasero-medium-monitor.c
@@ -593,10 +593,10 @@ brasero_medium_monitor_device_removed (BraseroMediumMonitor *self,
brasero_medium_monitor_disconnected_real,
self);
}
- else if (associated_gdrive) {
- /* do nothing and wait for a "drive-disconnected" signal */
+ /* else do nothing and wait for a "drive-disconnected" signal */
+
+ if (associated_gdrive)
g_object_unref (associated_gdrive);
- }
g_object_unref (drive);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]