hey how about we stop breaking evas and edje with EVERY DAMN COMMIT???
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 15 Jun 2012 06:36:49 +0000 (06:36 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 15 Jun 2012 06:36:49 +0000 (06:36 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@72162 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_map.c

index 2b0591b..9c2d71a 100644 (file)
@@ -171,16 +171,15 @@ _evas_map_free(Evas_Object *obj, Evas_Map *m)
         if (m->surface)
           obj->layer->evas->engine.func->image_map_surface_free
           (obj->layer->evas->engine.data.output, m->surface);
+        if (obj->spans)
+          {
+             // FIXME: destroy engine side spans
+             free(obj->spans);
+             obj->spans = NULL;
+          }      
      }
    m->magic = 0;
    free(m);
-
-   if (obj->spans)
-     {
-        // FIXME: destroy engine side spans
-        free(obj->spans);
-        obj->spans = NULL;
-     }      
 }
 
 /****************************************************************************/