[libchamplain] Remove my last question/comment



commit fc4506eede96533cb2fb21471eff034d72118a29
Author: JiÅ?í Techet <techet gmail com>
Date:   Fri Mar 19 00:40:44 2010 +0100

    Remove my last question/comment
    
    Replace the original code with what I think might be correct even though
    I still don't understand its purpose...
    
    Signed-off-by: JiÅ?í Techet <techet gmail com>

 champlain/champlain-view.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 518e3b5..a0f2531 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -3127,13 +3127,9 @@ champlain_view_add_polygon (ChamplainView *view,
   g_signal_connect (polygon, "notify",
       G_CALLBACK (notify_polygon_cb), view);
 
-// JT question: what was the code below good for? It definitely leaks memory...
-/*  if (view->priv->viewport_size.width == 0 ||
-      view->priv->viewport_size.height == 0)
-  {
-    polygon->priv->actor = NULL;
+  if (priv->viewport_size.width == 0 ||
+      priv->viewport_size.height == 0)
     return;
-  }*/
 
   clutter_actor_set_position (CLUTTER_ACTOR (polygon), 0, 0);
   clutter_container_add_actor (CLUTTER_CONTAINER (priv->polygon_layer),



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