tests_: elementary: free memory in error path

Make sure we free the iterator here as well.

CID: 1409658

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D11441
This commit is contained in:
Stefan Schmidt 2020-03-02 16:40:38 +01:00 committed by Marcel Hollerbach
parent 677b507281
commit 57adf37303
1 changed files with 6 additions and 1 deletions

View File

@ -67,7 +67,12 @@ EFL_START_TEST(no_leaking_canvas_object)
Eina_Iterator *iter = eo_objects_iterator_new();
Eo *obj;
if (efl_isa(widget, EFL_UI_FLIP_CLASS)) return; //FIXME Flip needs more work for this. However, flip should be redone as a spotlight manager, When this is done, we can add these classes to the check here.
if (efl_isa(widget, EFL_UI_FLIP_CLASS))
{
//FIXME Flip needs more work for this. However, flip should be redone as a spotlight manager, When this is done, we can add these classes to the check here.
eina_iterator_free(iter);
return;
}
EINA_ITERATOR_FOREACH(iter, obj)
{