From c471ee03d66fe63353283cd18dfba304be335faa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Wed, 22 Jan 2014 18:26:09 +0900 Subject: [PATCH] Evas filters: Fix uninitialized memory access and unsupported call --- src/lib/evas/filters/evas_filter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/evas/filters/evas_filter.c b/src/lib/evas/filters/evas_filter.c index 96dd50f891..433e788054 100644 --- a/src/lib/evas/filters/evas_filter.c +++ b/src/lib/evas/filters/evas_filter.c @@ -149,6 +149,7 @@ _proxy_subrender(Evas *eo_e, Evas_Object *eo_source, Evas_Object *eo_proxy, { Evas_Public_Data *e = eo_data_scope_get(eo_e, EVAS_CLASS); Evas_Object_Protected_Data *source; + Eina_Bool source_clip = EINA_FALSE; void *ctx; int w, h; @@ -194,9 +195,8 @@ _proxy_subrender(Evas *eo_e, Evas_Object *eo_source, Evas_Object *eo_proxy, ctx = e->engine.func->context_new(e->engine.data.output); - // FIXME: Not implemented for class Evas_Text. - Eina_Bool source_clip; - eo_do(eo_proxy, evas_obj_image_source_clip_get(&source_clip)); + if (eo_isa(eo_proxy, EVAS_OBJ_IMAGE_CLASS)) + eo_do(eo_proxy, evas_obj_image_source_clip_get(&source_clip)); Evas_Proxy_Render_Data proxy_render_data = { .eo_proxy = eo_proxy,