[tracker/tracker-0.10] tracker-extract: Fix critical warning in controller's finalize
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-extract: Fix critical warning in controller's finalize
- Date: Wed, 20 Apr 2011 15:34:06 +0000 (UTC)
commit 543aa778b4f845ea8c3e61e7f53ff7b53d4dfa8f
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 636131e..e9c07a5 100644
--- a/src/tracker-extract/tracker-controller.c
+++ b/src/tracker-extract/tracker-controller.c
@@ -192,7 +192,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]