Browse Source

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

git-svn-id: trunk@47636 -
ondrej 4 năm trước cách đây
mục cha
commit
706d89d6cc
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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;