evas: NULL is always needed as during destruction parent is set to NULL.

This commit is contained in:
Cedric BAIL 2015-04-03 16:22:53 +02:00
parent 09d7ffe520
commit f85f8135a0
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ _evas_vg_root_node_eo_base_parent_set(Eo *obj,
{
// Nice little hack, jump over parent parent_set in Evas_VG_Root
eo_do_super(obj, EVAS_VG_NODE_CLASS, eo_parent_set(parent));
if (!eo_isa(parent, EVAS_VG_CLASS))
if (parent && !eo_isa(parent, EVAS_VG_CLASS))
eo_error_set(obj);
}