Use efl_unref instead of efl_del for simplicity
It is easier to explain in the tutorials.
This commit is contained in:
parent
cb1ccc372c
commit
b1d7440a6e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue