diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2020-03-02 16:40:38 +0100 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2020-03-03 10:55:40 +0100 |
commit | 57adf37303bac3e2cfdd5e25fddd4fe39ae284c9 (patch) | |
tree | 270053e9089367aff5003c4da24fb9ac2f510e05 | |
parent | 677b507281103ccd1d761641fc81338abef6b364 (diff) |
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
-rw-r--r-- | src/tests/elementary/spec/efl_test_basics.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/elementary/spec/efl_test_basics.c b/src/tests/elementary/spec/efl_test_basics.c index 2774b2ae8f..603c094ce0 100644 --- a/src/tests/elementary/spec/efl_test_basics.c +++ b/src/tests/elementary/spec/efl_test_basics.c | |||
@@ -67,7 +67,12 @@ EFL_START_TEST(no_leaking_canvas_object) | |||
67 | Eina_Iterator *iter = eo_objects_iterator_new(); | 67 | Eina_Iterator *iter = eo_objects_iterator_new(); |
68 | Eo *obj; | 68 | Eo *obj; |
69 | 69 | ||
70 | 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. | 70 | if (efl_isa(widget, EFL_UI_FLIP_CLASS)) |
71 | { | ||
72 | //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. | ||
73 | eina_iterator_free(iter); | ||
74 | return; | ||
75 | } | ||
71 | 76 | ||
72 | EINA_ITERATOR_FOREACH(iter, obj) | 77 | EINA_ITERATOR_FOREACH(iter, obj) |
73 | { | 78 | { |