Fix stupid error in last mod.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14591 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-09-27 13:37:29 +00:00
parent 4658c7dc35
commit 855c744745

View file

@ -605,8 +605,11 @@ setNSFont(NSString* key, NSFont* font)
NSMapInsert(globalFontMap, (void*)nameWithMatrix, (void*)self); NSMapInsert(globalFontMap, (void*)nameWithMatrix, (void*)self);
} }
else else
{
if (self != placeHolder)
{ {
RELEASE(self); RELEASE(self);
}
self = RETAIN(font); self = RETAIN(font);
} }
RELEASE(nameWithMatrix); RELEASE(nameWithMatrix);