[libchamplain] Remove tile ref/unref in ChamplainTile



commit 1dcbd66336ef8aa3946a7e2e36f25e007496af90
Author: JiÅ?í Techet <techet gmail com>
Date:   Sat Mar 27 14:53:37 2010 +0100

    Remove tile ref/unref in ChamplainTile
    
    Under Lucid, there are some warnings in the console about non-existent
    object being unreffed. This patch fixes that. It should be safe not
    to ref the tile because when fade_in is completed, the content actor
    is guaranteed to exist and because it exists, its parent exists as
    well.
    
    Signed-off-by: JiÅ?í Techet <techet gmail com>

 champlain/champlain-tile.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/champlain/champlain-tile.c b/champlain/champlain-tile.c
index b72c0b3..893756b 100644
--- a/champlain/champlain-tile.c
+++ b/champlain/champlain-tile.c
@@ -501,8 +501,6 @@ fade_in_completed (ClutterAnimation *animation, ChamplainTile *self)
 {
   if (clutter_group_get_n_children (CLUTTER_GROUP (self)) > 1)
     clutter_actor_destroy (clutter_group_get_nth_child (CLUTTER_GROUP (self), 0));
-
-  g_object_unref (self);
 }
 
 /**
@@ -551,7 +549,6 @@ champlain_tile_set_state (ChamplainTile *self,
               NULL);
         }
 
-      g_object_ref (self);
       g_signal_connect (animation, "completed", G_CALLBACK (fade_in_completed), self);
     }
 



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