forked from enlightenment/efl
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:
parent
60d2bd233b
commit
4095165385
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue