evas_vg_container: return NULL in evas_vg_container_add when the parent of container is NULL

Summary:
evas_vg_container should return NULL when the parent is NULL
because the function does not allot NULL parent
@fix

Reviewers: kimcinoo, jsuya, Hermet

Reviewed By: kimcinoo

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11867
This commit is contained in:
Taehyub Kim 2020-05-22 12:23:46 +09:00 committed by Stefan Schmidt
parent e81c326088
commit c3adf72aa8
1 changed files with 5 additions and 1 deletions

View File

@ -493,7 +493,11 @@ evas_vg_container_add(Evas_Object *parent)
{
/* Warn it because the usage has been changed.
We can remove this message after v1.21. */
if (!parent) CRI("Efl_VG Container doesn't allow null parent!");
if (!parent)
{
ERR("Efl_VG Container doesn't allow null parent!");
return NULL;
}
return efl_add(MY_CLASS, parent);
}