[brasero] Fix #592026 - brasero crashes when eject a medium
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix #592026 - brasero crashes when eject a medium
- Date: Wed, 26 Aug 2009 20:03:29 +0000 (UTC)
commit 34a2d7a4a24543ee0969dcd26d0dcb0fda11e3ae
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Wed Aug 26 21:15:02 2009 +0200
Fix #592026 - brasero crashes when eject a medium
Patch by Lin Ma <lin ma sun com>
libbrasero-media/brasero-drive.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/libbrasero-media/brasero-drive.c b/libbrasero-media/brasero-drive.c
index 09118b2..a5da76f 100644
--- a/libbrasero-media/brasero-drive.c
+++ b/libbrasero-media/brasero-drive.c
@@ -234,11 +234,13 @@ brasero_drive_eject (BraseroDrive *drive,
BRASERO_MEDIA_LOG ("Trying to eject volume");
gvolume = brasero_volume_get_gvolume (BRASERO_VOLUME (priv->medium));
- res = brasero_gio_operation_eject_volume (gvolume,
- priv->cancel,
- wait,
- error);
- g_object_unref (gvolume);
+ if (gvolume) {
+ res = brasero_gio_operation_eject_volume (gvolume,
+ priv->cancel,
+ wait,
+ error);
+ g_object_unref (gvolume);
+ }
return res;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]