evas: fix work of engine on macOS.
authorse.osadchy <se.osadchy@samsung.com>
Mon, 11 Jul 2016 17:54:47 +0000 (10:54 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 11 Jul 2016 17:54:50 +0000 (10:54 -0700)
Summary: Update eng_image_free function and check of references.

Reviewers: thiepha, NikaWhite, FurryMyad, raster, cedric

Subscribers: raster, jpeg

Differential Revision: https://phab.enlightenment.org/D4150

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/modules/evas/engines/gl_cocoa/evas_engine.c

index dfe82da..1cd81c7 100644 (file)
@@ -582,7 +582,7 @@ eng_image_free(void *data, void *image)
    re = (Render_Engine *)data;
    if (!image) return;
    eng_window_use(re->win);
-   evas_gl_common_image_free(image);
+   evas_gl_common_image_unref(image);
 }
 
 static void