Explorar o código

Clear SelfList when destroying GDScriptLanguage

kobewi %!s(int64=2) %!d(string=hai) anos
pai
achega
c646f7df70
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      modules/gdscript/gdscript.cpp

+ 2 - 0
modules/gdscript/gdscript.cpp

@@ -2025,6 +2025,8 @@ void GDScriptLanguage::finish() {
 		}
 		s = s->next();
 	}
+	script_list.clear();
+	function_list.clear();
 }
 
 void GDScriptLanguage::profiling_start() {