summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-17 12:49:20 +0100
committerGitHub <noreply@github.com>2020-02-17 12:49:20 +0100
commitfb8c93c10b4b73d5f18f1ed287497728800e22b5 (patch)
tree463c2c51c7b0840d493becc1235ef7ed138976bd
parentc92c434299278e035916e4d793f667fa609ac0ba (diff)
parent8312ead0d99cfc308f2f7635bae3da6bf0ff5489 (diff)
Merge pull request #36295 from akien-mga/classdb-workaround-gdscript-double-free
ClassDB: Workaround double-free for GDScript
-rw-r--r--core/class_db.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp
index a2941d70f6..2fd0ee2d89 100644
--- a/core/class_db.cpp
+++ b/core/class_db.cpp
@@ -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) {