raster pushed a commit to branch master.
commit 0632415e9cb2f67940fff7f11ecc78c556b89c59
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Wed May 8 23:41:39 2013 +0900
don't try free a NULL image handle in proxy_unset.
---
src/lib/evas/canvas/evas_object_image.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/lib/evas/canvas/evas_object_image.c
b/src/lib/evas/canvas/evas_object_image.c
index 864d5f2..8f86d67 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -3173,8 +3173,9 @@ _proxy_unset(Evas_Object *proxy,
Evas_Object_Protected_Data *cur_proxy, Evas_Obj
if (eina_list_count(proxy_source_write->proxies) == 0)
{
-
cur_proxy->layer->evas->engine.func->image_map_surface_free(cur_proxy->layer->evas->engine.data.output,
-
proxy_source_write->surface);
+ if (proxy_source_write->surface)
+
cur_proxy->layer->evas->engine.func->image_map_surface_free(cur_proxy->layer->evas->engine.data.output,
+
proxy_source_write->surface);
proxy_source_write->surface = NULL;
}
--
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may