From: raster Date: Fri, 29 Jul 2011 06:21:43 +0000 (+0000) Subject: more error handling improvements X-Git-Tag: accepted/2.0/20130306.224007~156^2~191 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33ce9bcdb36430d2c40ec026682fdd4f26667f38;p=profile%2Fivi%2Fecore.git more error handling improvements git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61879 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c index 1fed260..5f0ef27 100644 --- a/src/lib/ecore_evas/ecore_evas_buffer.c +++ b/src/lib/ecore_evas/ecore_evas_buffer.c @@ -594,8 +594,16 @@ ecore_evas_buffer_allocfunc_new(int w, int h, void *(*alloc_func) (void *data, i if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo)) { ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver); + ecore_evas_free(ee); + return NULL; } } + else + { + ERR("evas_engine_info_set() init engine '%s' failed.", ee->driver); + ecore_evas_free(ee); + return NULL; + } evas_key_modifier_add(ee->evas, "Shift"); evas_key_modifier_add(ee->evas, "Control"); evas_key_modifier_add(ee->evas, "Alt"); @@ -765,8 +773,16 @@ ecore_evas_object_image_new(Ecore_Evas *ee_target) if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo)) { ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver); + ecore_evas_free(ee); + return NULL; } } + else + { + ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver); + ecore_evas_free(ee); + return NULL; + } evas_key_modifier_add(ee->evas, "Shift"); evas_key_modifier_add(ee->evas, "Control"); evas_key_modifier_add(ee->evas, "Alt");