[brasero] Fix an object that was not reffed properly



commit b0b3e2b8fb0c4299be774b3abf9f6acff008eb0a
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Tue Jul 28 09:21:33 2009 +0200

    Fix an object that was not reffed properly

 src/brasero-file-filtered.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/brasero-file-filtered.c b/src/brasero-file-filtered.c
index b475b10..fdc6cae 100644
--- a/src/brasero-file-filtered.c
+++ b/src/brasero-file-filtered.c
@@ -333,7 +333,7 @@ brasero_file_filtered_set_property (GObject *object,
 
 	switch (property_id) {
 	case PROP_TRACK: /* Readable and only writable at creation time */
-		priv->track = g_value_get_object (value);
+		priv->track = g_object_ref (g_value_get_object (value));
 		model = brasero_track_data_cfg_get_filtered_model (priv->track);
 		gtk_tree_view_set_model (GTK_TREE_VIEW (priv->tree), model);
 



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