Browse Source

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

git-svn-id: trunk@47636 -
ondrej 4 years ago
parent
commit
706d89d6cc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/objpas/classes/classes.inc

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

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