[brasero] Fix a memory leak (object was not properly unreffed)
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix a memory leak (object was not properly unreffed)
- Date: Thu, 30 Jul 2009 07:34:00 +0000 (UTC)
commit 8fa65b2a3fad866b9707cc83e5fa4886dff9d374
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue Jul 28 09:22:20 2009 +0200
Fix a memory leak (object was not properly unreffed)
src/brasero-data-disc.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/brasero-data-disc.c b/src/brasero-data-disc.c
index 480a77a..f3600d5 100644
--- a/src/brasero-data-disc.c
+++ b/src/brasero-data-disc.c
@@ -1598,6 +1598,9 @@ brasero_data_disc_set_session_contents (BraseroDisc *self,
NULL);
brasero_data_disc_set_track (BRASERO_DATA_DISC (self),
BRASERO_TRACK_DATA_CFG (data_track));
+
+ /* NOTE: that track was reffed in brasero_data_disc_set_track () */
+ g_object_unref (data_track);
}
else for (; tracks; tracks = tracks->next) {
BraseroTrack *track;
@@ -2341,6 +2344,11 @@ brasero_data_disc_finalize (GObject *object)
priv = BRASERO_DATA_DISC_PRIVATE (object);
+ if (priv->project) {
+ g_object_unref (priv->project);
+ priv->project = NULL;
+ }
+
if (priv->button_size) {
g_object_unref (priv->button_size);
priv->button_size = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]