elm_test_widget_focus: Fix memory leak
authorChristopher Michael <cp.michael@samsung.com>
Thu, 2 May 2019 11:43:04 +0000 (13:43 +0200)
committerHermet Park <hermetpark@gmail.com>
Wed, 8 May 2019 04:30:08 +0000 (13:30 +0900)
Summary:
Coverity reports that we leak the 'map' hash here, so lets add a call
to free the hash

Fixes CID1401069

@fix

Depends on D8760

Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8761

src/tests/elementary/elm_test_widget_focus.c

index 6b8ac87..e4e04a1 100644 (file)
@@ -205,6 +205,8 @@ EFL_START_TEST(elm_test_widget_focus_simple_widget)
          ck_assert_int_eq(elm_object_focus_get(resettor), EINA_TRUE);
          ck_assert_int_eq(elm_object_focus_get(o), EINA_FALSE);
       }
+
+   eina_hash_free(map);
 }
 EFL_END_TEST