aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_map.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-07-02 12:04:02 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-07-02 12:05:50 +0900
commitb5c9350805e350f7d7e5b0daeb8b02a5fc42b456 (patch)
tree6876dc68225f0a3ad98cb8c0e27dd6449a546960 /src/lib/evas/canvas/evas_map.c
parentEvas gl_cocoa: remove code duplicated from gl_generic (diff)
downloadefl-b5c9350805e350f7d7e5b0daeb8b02a5fc42b456.tar.gz
Evas: Replace image_map_surface_free by common image_free
Those two functions were doing exactly the same thing[1], which is free an image, so this commit only attempts to simplify the code a little bit. [1] Actually image_map_surface_free() might even not have worked properly with cserve2 sw (calling unload instead of close).
Diffstat (limited to 'src/lib/evas/canvas/evas_map.c')
-rw-r--r--src/lib/evas/canvas/evas_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c
index bd7e51b99b..53c18fc96f 100644
--- a/src/lib/evas/canvas/evas_map.c
+++ b/src/lib/evas/canvas/evas_map.c
@@ -494,7 +494,7 @@ _evas_object_map_enable_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Bo
{
EINA_COW_WRITE_BEGIN(evas_object_map_cow, obj->map, Evas_Object_Map_Data, map_write)
{
- obj->layer->evas->engine.func->image_map_surface_free
+ obj->layer->evas->engine.func->image_free
(obj->layer->evas->engine.data.output,
map_write->surface);
map_write->surface = NULL;
@@ -548,7 +548,7 @@ _evas_object_map_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, const Evas_Map
{
EINA_COW_WRITE_BEGIN(evas_object_map_cow, obj->map, Evas_Object_Map_Data, map_write)
{
- obj->layer->evas->engine.func->image_map_surface_free
+ obj->layer->evas->engine.func->image_free
(obj->layer->evas->engine.data.output,
map_write->surface);
map_write->surface = NULL;