Browse Source

Clear SelfList when destroying GDScriptLanguage

kobewi 2 years ago
parent
commit
c646f7df70
1 changed files with 2 additions and 0 deletions
  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() {