need NULL checks in EAPI function.

patched by Sungho Kwak   sungho.efl@gmail.com


SVN revision: 75946
This commit is contained in:
Jiyoun Park 2012-09-03 05:37:16 +00:00
parent 0854fe7aba
commit 59fa846c97
1 changed files with 5 additions and 0 deletions

View File

@ -655,6 +655,9 @@ EAPI const void *
ecore_evas_buffer_pixels_get(Ecore_Evas *ee)
{
#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
if(!ee) return NULL;
_ecore_evas_buffer_render(ee);
return ee->engine.buffer.pixels;
#else
@ -690,6 +693,8 @@ ecore_evas_object_image_new(Ecore_Evas *ee_target)
int rmethod;
int w = 1, h = 1;
if (!ee_target) return NULL;
rmethod = evas_render_method_lookup("buffer");
if (!rmethod) return NULL;
ee = calloc(1, sizeof(Ecore_Evas));