From 0ab37b325d38ba9549d864adaaa80444e541cd69 Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Mon, 12 Apr 2010 13:35:34 +0200 Subject: [PATCH] Fix for deadlock. (Perhaps a FPC issue?) --- Projects/SAMufasaGUI/framefunctionlist.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Projects/SAMufasaGUI/framefunctionlist.pas b/Projects/SAMufasaGUI/framefunctionlist.pas index aace4fd..5e2b3b9 100644 --- a/Projects/SAMufasaGUI/framefunctionlist.pas +++ b/Projects/SAMufasaGUI/framefunctionlist.pas @@ -84,7 +84,8 @@ end; procedure TFunctionListFrame.FillThreadTerminate(Sender: TObject); begin FillThread.Analyzer.Free; - FreeAndNil(FillThread); + { Don't free the thread when it is already stopped... This causes deadlocks? } + //FreeAndNil(FillThread); ScriptNode.Expand(true); FunctionList.EndUpdate; if Filtering then