raster pushed a commit to branch efl-1.8.

http://git.enlightenment.org/core/efl.git/commit/?id=50f786f24a1366cd2ce6cf23b24442fb93aabb49

commit 50f786f24a1366cd2ce6cf23b24442fb93aabb49
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Dec 11 09:23:09 2013 +0900

    gif loader - handle theoretical NULL loader_data case
---
 src/modules/evas/loaders/gif/evas_image_load_gif.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/modules/evas/loaders/gif/evas_image_load_gif.c 
b/src/modules/evas/loaders/gif/evas_image_load_gif.c
index c9c7d7a..44d379e 100644
--- a/src/modules/evas/loaders/gif/evas_image_load_gif.c
+++ b/src/modules/evas/loaders/gif/evas_image_load_gif.c
@@ -386,6 +386,8 @@ evas_image_load_file_head_gif2(void *loader_data,
    Frame_Info *finfo = NULL;
    Eina_Bool full = EINA_TRUE;
 
+   if (!loader) return EINA_FALSE;
+   
    // init prop struct with some default null values
    prop->w = 0;
    prop->h = 0;
@@ -549,6 +551,8 @@ evas_image_load_file_data_gif2(void *loader_data,
    int index = 0, imgnum = 0;
    Frame_Info *finfo;
 
+   if (!loader) return EINA_FALSE;
+   
    // XXX: this is so wrong - storing current frame IN the image
    // so we have to load multiple times to animate. what if the
    // same image is shared/loaded in 2 ore more places AND animated

-- 


Reply via email to