Fixed memory leak

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15656 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2003-01-21 01:12:35 +00:00
parent b4b1b0a2ca
commit 33acee79ea

View file

@ -118,7 +118,9 @@ static BOOL XGInitAtoms(Display *dpy)
- (void) dealloc
{
if (font_info != NULL)
XUnloadFont([XGServer currentXDisplay], font_info->fid);
{
XFreeFont([XGServer currentXDisplay], font_info);
}
[super dealloc];
}