brasero r807 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r807 - in trunk: . src
- Date: Fri, 9 May 2008 14:52:23 +0100 (BST)
Author: philippr
Date: Fri May 9 13:52:23 2008
New Revision: 807
URL: http://svn.gnome.org/viewvc/brasero?rev=807&view=rev
Log:
Fixed another bug with project-size medium insertion/removal
* src/brasero-project-size.c (brasero_project_size_finalize),
(brasero_project_size_disc_added_cb),
(brasero_project_size_disc_removed_cb):
Modified:
trunk/ChangeLog
trunk/src/brasero-project-size.c
Modified: trunk/src/brasero-project-size.c
==============================================================================
--- trunk/src/brasero-project-size.c (original)
+++ trunk/src/brasero-project-size.c Fri May 9 13:52:23 2008
@@ -303,6 +303,7 @@
BraseroDriveSize *drive;
drive = iter->data;
+ g_object_unref (drive->medium);
g_free (drive);
}
g_list_free (cobj->priv->drives);
@@ -1558,6 +1559,8 @@
/* first add it to the list */
drive = g_new0 (BraseroDriveSize, 1);
drive->medium = medium;
+ g_object_ref (medium);
+
self->priv->drives = g_list_prepend (self->priv->drives, drive);
drive->media = brasero_medium_get_status (medium);
@@ -1590,7 +1593,11 @@
drive = iter->data;
next = iter->next;
if (medium == drive->medium) {
+ if (self->priv->current == drive)
+ self->priv->current = NULL;
+
self->priv->drives = g_list_remove (self->priv->drives, drive);
+ g_object_unref (drive->medium);
g_free (drive);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]