diff options
Diffstat (limited to 'qom')
-rw-r--r-- | qom/object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qom/object.c b/qom/object.c index 90155faec1..dcb686348b 100644 --- a/qom/object.c +++ b/qom/object.c @@ -307,6 +307,7 @@ static void type_initialize(TypeImpl *ti) int i; g_assert(parent->class_size <= ti->class_size); + g_assert(parent->instance_size <= ti->instance_size); memcpy(ti->class, parent->class, parent->class_size); ti->class->interfaces = NULL; ti->class->properties = g_hash_table_new_full( |