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
This commit is contained in:
Carsten Haitzler 2017-07-23 18:36:44 +09:00
parent 60d2bd233b
commit 4095165385
1 changed files with 2 additions and 1 deletions

View File

@ -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;