Eo test: Fix cleanup of objects.
authorTom Hacohen <tom@stosb.com>
Fri, 21 Oct 2016 14:18:46 +0000 (15:18 +0100)
committerTom Hacohen <tom@stosb.com>
Fri, 21 Oct 2016 14:29:39 +0000 (15:29 +0100)
src/tests/eo/suite/eo_test_general.c

index f0548d7..648f733 100644 (file)
@@ -589,6 +589,11 @@ START_TEST(efl_refs)
    ck_assert_int_eq(efl_ref_get(obj2), 1);
    ck_assert_int_eq(efl_ref_get(obj3), 2);
 
+   efl_del(obj);
+   efl_del(obj2);
+   efl_unref(obj3);
+   efl_del(obj3);
+
    /* Setting and removing parents. */
    obj = efl_add(SIMPLE_CLASS, NULL);
    obj2 = efl_ref(efl_add(SIMPLE_CLASS, obj));