Merge pull request #36295 from akien-mga/classdb-workaround-gdscript-double-free

ClassDB: Workaround double-free for GDScript
This commit is contained in:
Rémi Verschelde 2020-02-17 12:49:20 +01:00 committed by GitHub
commit fb8c93c10b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1410,7 +1410,10 @@ Variant ClassDB::class_get_default_property_value(const StringName &p_class, con
cleanup_c = false;
} else if (ClassDB::can_instance(p_class)) {
c = ClassDB::instance(p_class);
cleanup_c = true;
#ifndef _MSC_VER
#warning FIXME: ObjectID refactoring broke GDScript handling of reference pointers, this needs a proper fix.
#endif
cleanup_c = (p_class != StringName("GDScript"));
}
if (c) {