Ehem... do not leak the test objects

This commit is contained in:
Xavi Artigas 2017-11-16 18:37:57 +01:00
parent 13fb2b4b1b
commit 6b8dac2677
2 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,8 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
example_rectangle_height_get(rectangle),
example_rectangle_area(rectangle));
efl_unref(rectangle);
efl_exit(0);
}
EFL_MAIN()

View File

@ -50,12 +50,15 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
shape = _rectangle_create();
_shape_print(shape);
efl_unref(shape);
shape = _square_create();
_shape_print(shape);
efl_unref(shape);
shape = _circle_create();
_shape_print(shape);
efl_unref(shape);
efl_exit(0);
}