mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 09:21:26 +00:00
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:
parent
b4b1b0a2ca
commit
33acee79ea
1 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,9 @@ static BOOL XGInitAtoms(Display *dpy)
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
if (font_info != NULL)
|
if (font_info != NULL)
|
||||||
XUnloadFont([XGServer currentXDisplay], font_info->fid);
|
{
|
||||||
|
XFreeFont([XGServer currentXDisplay], font_info);
|
||||||
|
}
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue