瀏覽代碼

* GlobalNameSpace must EndWrite before it is released to unlock the critical section

git-svn-id: trunk@47636 -
ondrej 4 年之前
父節點
當前提交
706d89d6cc
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      rtl/objpas/classes/classes.inc

+ 3 - 0
rtl/objpas/classes/classes.inc

@@ -2521,6 +2521,9 @@ begin
   GlobalLists.Free;
   ComponentPages.Free;
   FreeAndNil(NeedResolving);
+{$ifdef FPC_HAS_FEATURE_THREADING}
+  GlobalNameSpace.EndWrite;
+{$endif}
   { GlobalNameSpace is an interface so this is enough }
   GlobalNameSpace:=nil;