diff --git a/Source/Additions/NSObject+GNUstepBase.m b/Source/Additions/NSObject+GNUstepBase.m index d5e950cb9..4c9ff9f43 100644 --- a/Source/Additions/NSObject+GNUstepBase.m +++ b/Source/Additions/NSObject+GNUstepBase.m @@ -253,7 +253,7 @@ handleExit() atexit(handleExit); enabled = YES; } - [gnustep_global_lock lock]; + [gnustep_global_lock unlock]; return YES; } @@ -267,7 +267,7 @@ handleExit() atexit(handleExit); enabled = YES; } - [gnustep_global_lock lock]; + [gnustep_global_lock unlock]; shouldCleanUp = YES; } else