Fix locking problem when registering new description.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12501 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-02-12 06:58:59 +00:00
parent 944e3a5ee8
commit 92aa5f9480

View file

@ -45,9 +45,11 @@ static NSMapTable *classMap;
{
NSNotificationCenter *nc;
[mapLock unlock];
nc = [NSNotificationCenter defaultCenter];
[nc postNotificationName: NSClassDescriptionNeededForClassNotification
object: aClass];
[mapLock lock];
description = NSMapGet(classMap, aClass);
}
RETAIN(description);