[brasero] Fix memleak



commit d1de01c8d81f1db341094d03f448cfb10ed2b8e3
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Tue Jul 14 16:48:53 2009 +0200

    Fix memleak
    on each lock () and unlock () we were not closing the handle for the drive

 libbrasero-media/brasero-drive.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libbrasero-media/brasero-drive.c b/libbrasero-media/brasero-drive.c
index 6399aab..9978f4f 100644
--- a/libbrasero-media/brasero-drive.c
+++ b/libbrasero-media/brasero-drive.c
@@ -357,6 +357,7 @@ brasero_drive_lock (BraseroDrive *drive,
 	else
 		BRASERO_MEDIA_LOG ("Device locked");
 
+	brasero_device_handle_close (handle);
 	return result;
 }
 
@@ -395,6 +396,7 @@ brasero_drive_unlock (BraseroDrive *drive)
 	else
 		BRASERO_MEDIA_LOG ("Device unlocked");
 
+	brasero_device_handle_close (handle);
 	return result;
 }
 



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