diff options
Diffstat (limited to 'qom/object.c')
-rw-r--r-- | qom/object.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qom/object.c b/qom/object.c index 7b013f4..1856bb3 100644 --- a/qom/object.c +++ b/qom/object.c @@ -431,13 +431,13 @@ static void object_init_with_type(Object *obj, TypeImpl *ti) static void object_post_init_with_type(Object *obj, TypeImpl *ti) { - if (ti->instance_post_init) { - ti->instance_post_init(obj); - } - if (type_has_parent(ti)) { object_post_init_with_type(obj, type_get_parent(ti)); } + + if (ti->instance_post_init) { + ti->instance_post_init(obj); + } } bool object_apply_global_props(Object *obj, const GPtrArray *props, |