[tracker] tracker-extract: Fix critical warning in controller's finalize



commit 48450caf9f62430fcc7a00e488fc80b8f744a22c
Author: Philip Van Hoof <philip codeminded be>
Date:   Fri Apr 15 17:23:11 2011 +0200

    tracker-extract: Fix critical warning in controller's finalize
    
    I tested the ref count of priv->extractor in the finalize of the
    controller, and it was 0 already at that point. Making me believe
    that an ownership transfer is needed at set of the property.

 src/tracker-extract/tracker-controller.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-controller.c b/src/tracker-extract/tracker-controller.c
index bf7d749..28f5dd5 100644
--- a/src/tracker-extract/tracker-controller.c
+++ b/src/tracker-extract/tracker-controller.c
@@ -193,7 +193,7 @@ tracker_controller_set_property (GObject      *object,
 		priv->shutdown_timeout = g_value_get_uint (value);
 		break;
 	case PROP_EXTRACTOR:
-		priv->extractor = g_value_get_object (value);
+		priv->extractor = g_value_dup_object (value);
 		break;
 	}
 }



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