summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/canvas/evas_layer.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2003-01-10 05:38:47 +0000
committerCarsten Haitzler <raster@rasterman.com>2003-01-10 05:38:47 +0000
commit7c80fa9a3ee8ef3c67ff06e6d8b5ad7aed62f4ee (patch)
tree9c1fa16a429521cf580f40f2f6809de6a5dea3b0 /legacy/evas/src/lib/canvas/evas_layer.c
parent3f207b8c082f09b875fc08bacb4900b272d56233 (diff)
logic problem on evas_free(). shoudl be fixed now... :)
SVN revision: 6559
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_layer.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_layer.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_layer.c b/legacy/evas/src/lib/canvas/evas_layer.c
index 757ddb8..05bed5f 100644
--- a/legacy/evas/src/lib/canvas/evas_layer.c
+++ b/legacy/evas/src/lib/canvas/evas_layer.c
@@ -45,6 +45,20 @@ evas_layer_new(Evas *e)
45} 45}
46 46
47void 47void
48evas_layer_pre_free(Evas_Layer *lay)
49{
50 Evas_Object_List *l;
51
52 for (l = (Evas_Object_List *)lay->objects; l; l = l->next)
53 {
54 Evas_Object *obj;
55
56 obj = (Evas_Object *)l;
57 evas_object_del(obj);
58 }
59}
60
61void
48evas_layer_free(Evas_Layer *lay) 62evas_layer_free(Evas_Layer *lay)
49{ 63{
50 while (lay->objects) 64 while (lay->objects)
@@ -52,7 +66,6 @@ evas_layer_free(Evas_Layer *lay)
52 Evas_Object *obj; 66 Evas_Object *obj;
53 67
54 obj = (Evas_Object *)lay->objects; 68 obj = (Evas_Object *)lay->objects;
55 if (obj->smart.smart) evas_object_smart_del(obj);
56 evas_object_free(obj, 0); 69 evas_object_free(obj, 0);
57 } 70 }
58 free(lay); 71 free(lay);