Fixed memory leak

This commit is contained in:
Simon Lübeß
2026-08-15 13:52:45 +02:00
parent 188dc4b3b6
commit 29b6f37c2a
+1 -3
View File
@@ -329,9 +329,7 @@ class ScriptSettings
if (ImGui.Button("Detect IDEs..."))
{
//BackgroundTask task = new BackgroundTask();
EditorApp.Instance.BackgroundTaskManager.StartBackgroundTask(new DetectIDEsBackgroundTask(this));
EditorApp.Instance.BackgroundTaskManager.StartBackgroundTask(new DetectIDEsBackgroundTask(this){ DeleteWhenEnded = true });
}
return settingsChanged;