Fix callable not clearing freed pointer
@@ -324,6 +324,7 @@ void Callable::operator=(const Callable &p_callable) {
if (custom->ref_count.unref()) {
memdelete(custom);
+ custom = nullptr;
}
@@ -428,6 +429,7 @@ Callable::~Callable() {
if (is_custom()) {