#include "evas_common.h"
#include "evas_private.h"
+static void _evas_layer_free(Evas_Layer *lay);
+
void
evas_object_inject(Evas_Object *obj, Evas *e)
{
if (obj->layer->usage <= 0)
{
evas_layer_del(obj->layer);
- evas_layer_free(obj->layer);
+ _evas_layer_free(obj->layer);
}
}
obj->layer = NULL;
return lay;
}
+static void
+_evas_layer_free(Evas_Layer *lay)
+{
+ free(lay);
+}
+
void
evas_layer_pre_free(Evas_Layer *lay)
{
}
void
-evas_layer_free(Evas_Layer *lay)
+evas_layer_free_objects(Evas_Layer *lay)
{
while (lay->objects)
{
{
tmp = e->layers;
evas_layer_del(tmp);
- free(tmp);
+ _evas_layer_free(tmp);
}
}
void evas_object_recalc_clippees(Evas_Object *obj);
Evas_Layer *evas_layer_new(Evas *e);
void evas_layer_pre_free(Evas_Layer *lay);
-void evas_layer_free(Evas_Layer *lay);
+void evas_layer_free_objects(Evas_Layer *lay);
void evas_layer_clean(Evas *e);
Evas_Layer *evas_layer_find(Evas *e, short layer_num);
void evas_layer_add(Evas_Layer *lay);