summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2020-02-19 09:14:39 -0300
committerGeorge Marques <george@gmarqu.es>2020-02-19 09:14:39 -0300
commitd4906481685f1379bc297ab7fb5b47b03e6771bb (patch)
tree506d717a03f9b3db1efa1b3d62cb6d65b55c0275 /core
parentb967c910b88ed0cf134749464dcec7f4311e19f4 (diff)
Revert "ClassDB: Workaround double-free for GDScript"
This reverts commit 8312ead0d99cfc308f2f7635bae3da6bf0ff5489.
Diffstat (limited to 'core')
-rw-r--r--core/class_db.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp
index 2fd0ee2d89..a2941d70f6 100644
--- a/core/class_db.cpp
+++ b/core/class_db.cpp
@@ -1410,10 +1410,7 @@ 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);
-#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"));
+ cleanup_c = true;
}
if (c) {