[glide] Glide inspector slide should ref it's actor
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Glide inspector slide should ref it's actor
- Date: Thu, 6 May 2010 08:48:42 +0000 (UTC)
commit 49f65f3be4312f29859f63b3e4d5c91b9f1c00e5
Author: Robert Carr <racarr Valentine localdomain>
Date: Thu May 6 03:20:36 2010 -0400
Glide inspector slide should ref it's actor
libglide/glide-inspector-slide.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libglide/glide-inspector-slide.c b/libglide/glide-inspector-slide.c
index 61d7255..ffd1c82 100644
--- a/libglide/glide-inspector-slide.c
+++ b/libglide/glide-inspector-slide.c
@@ -124,7 +124,8 @@ glide_inspector_slide_file_set (GtkFileChooserButton *file_button,
static void
glide_inspector_slide_finalize (GObject *object)
{
-
+ GlideInspectorSlide *inspector = (GlideInspectorSlide *)object;
+ g_object_unref (G_OBJECT (inspector->priv->actor));
}
static void
@@ -281,11 +282,13 @@ glide_inspector_slide_set_actor (GlideInspectorSlide *inspector,
g_signal_handler_disconnect (inspector->priv->actor,
inspector->priv->color_notify_id);
inspector->priv->color_notify_id = 0;
+
+ g_object_unref (G_OBJECT (inspector->priv->actor));
}
- inspector->priv->actor = actor;
-
if (!actor)
return;
+
+ inspector->priv->actor = (GlideActor *)g_object_ref (G_OBJECT (actor));
if (!GLIDE_IS_SLIDE (actor))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]