[libchamplain/libchamplain-0-4] Properly get rid of previous image



commit 45ad132161635d23d591e1d713d722434a1d6b39
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date:   Sat Feb 6 01:18:53 2010 -0500

    Properly get rid of previous image
    
    When changing the image using set_image, the old image would still
    be visible in behind the new image.

 champlain/champlain-marker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/champlain/champlain-marker.c b/champlain/champlain-marker.c
index 1665a03..957dd5a 100644
--- a/champlain/champlain-marker.c
+++ b/champlain/champlain-marker.c
@@ -929,7 +929,7 @@ champlain_marker_set_image (ChamplainMarker *marker,
   ChamplainMarkerPrivate *priv = marker->priv;
 
   if (priv->image != NULL)
-    g_object_unref (priv->image);
+    clutter_actor_destroy (priv->image);
 
   if (image != NULL)
     {



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