From 409516538560391fbcc53e90f1985b0d699d5be0 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 23 Jul 2017 18:36:44 +0900 Subject: [PATCH] efl canvas image - dbug ingo get - dont get if no root dbg info supplied if root dbg info is null we'll leak and not have anything useful stored somewhere for fetching anyway. this should fix CID 1365656 --- src/lib/evas/canvas/efl_canvas_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/efl_canvas_image.c b/src/lib/evas/canvas/efl_canvas_image.c index f6f0456..b4a52ac 100644 --- a/src/lib/evas/canvas/efl_canvas_image.c +++ b/src/lib/evas/canvas/efl_canvas_image.c @@ -854,7 +854,8 @@ _efl_canvas_image_efl_object_dbg_info_get(Eo *obj, void *pd EINA_UNUSED, Efl_Dbg { efl_dbg_info_get(efl_super(obj, MY_CLASS), root); - if (efl_image_load_error_get(obj) != EFL_IMAGE_LOAD_ERROR_NONE) + if ((efl_image_load_error_get(obj) != EFL_IMAGE_LOAD_ERROR_NONE) && + (root)) { Efl_Dbg_Info *group = EFL_DBG_INFO_LIST_APPEND(root, MY_CLASS_NAME); Evas_Load_Error error = EVAS_LOAD_ERROR_GENERIC; -- 2.7.4