Use efl_unref instead of efl_del for simplicity

It is easier to explain in the tutorials.
This commit is contained in:
Xavi Artigas 2017-11-08 12:25:27 +01:00
parent cb1ccc372c
commit b1d7440a6e
1 changed files with 2 additions and 2 deletions

View File

@ -83,13 +83,13 @@ _obj_destroy()
{
// Destroy the root element
printf ("Deleting root...\n");
efl_del(_root);
efl_unref(_root);
printf ("After deleting root:\n");
_status_print();
// Destroy the child2 element, for which we were keeping an extra reference
printf ("Deleting Child2...\n");
efl_del(_child2);
efl_unref(_child2);
}
EAPI_MAIN void