From 33acee79ea6ca0e7ff4d367bad46154b49b14f77 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 21 Jan 2003 01:12:35 +0000 Subject: [PATCH] Fixed memory leak git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@15656 72102866-910b-0410-8b05-ffd578937521 --- Source/xlib/XGFont.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/xlib/XGFont.m b/Source/xlib/XGFont.m index ce72687..00824d8 100644 --- a/Source/xlib/XGFont.m +++ b/Source/xlib/XGFont.m @@ -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]; }