Ehem... do not leak the test objects
This commit is contained in:
parent
13fb2b4b1b
commit
6b8dac2677
|
@ -30,6 +30,8 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
||||||
example_rectangle_height_get(rectangle),
|
example_rectangle_height_get(rectangle),
|
||||||
example_rectangle_area(rectangle));
|
example_rectangle_area(rectangle));
|
||||||
|
|
||||||
|
efl_unref(rectangle);
|
||||||
|
|
||||||
efl_exit(0);
|
efl_exit(0);
|
||||||
}
|
}
|
||||||
EFL_MAIN()
|
EFL_MAIN()
|
||||||
|
|
|
@ -50,12 +50,15 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
||||||
|
|
||||||
shape = _rectangle_create();
|
shape = _rectangle_create();
|
||||||
_shape_print(shape);
|
_shape_print(shape);
|
||||||
|
efl_unref(shape);
|
||||||
|
|
||||||
shape = _square_create();
|
shape = _square_create();
|
||||||
_shape_print(shape);
|
_shape_print(shape);
|
||||||
|
efl_unref(shape);
|
||||||
|
|
||||||
shape = _circle_create();
|
shape = _circle_create();
|
||||||
_shape_print(shape);
|
_shape_print(shape);
|
||||||
|
efl_unref(shape);
|
||||||
|
|
||||||
efl_exit(0);
|
efl_exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue