From 2b413d3f875d2c8be316592a7e56f94057f7d57b Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 11 Jul 2016 22:06:16 +0900 Subject: [PATCH] evas cache - avoid possible deref of null pointer this fixes CID 1267472 --- src/lib/evas/cache2/evas_cache2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/cache2/evas_cache2.c b/src/lib/evas/cache2/evas_cache2.c index d9788aa..bdb97b2 100644 --- a/src/lib/evas/cache2/evas_cache2.c +++ b/src/lib/evas/cache2/evas_cache2.c @@ -932,7 +932,7 @@ evas_cache2_image_scale_load(Image_Entry *im, error = evas_cache2_image_load_data(ret); if (error != EVAS_LOAD_ERROR_NONE) { - _evas_cache2_image_entry_delete(im->cache2, ret); + if (ret) _evas_cache2_image_entry_delete(im->cache2, ret); goto parent_out; } -- 2.7.4