diff options
author | Brian Paul <[email protected]> | 2001-04-26 19:28:02 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-04-26 19:28:02 +0000 |
commit | f20ea88f88398f38ea6029c35260e481b15116ed (patch) | |
tree | 09618dd67abf11b8b05022c48b14548036e370eb /src/mesa/drivers/x11/xfonts.c | |
parent | 11785d441da6c729e89243183b5fcb466c622e8f (diff) |
fixed mem leak in XFreeFontInfo() call
Diffstat (limited to 'src/mesa/drivers/x11/xfonts.c')
-rw-r--r-- | src/mesa/drivers/x11/xfonts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/x11/xfonts.c b/src/mesa/drivers/x11/xfonts.c index 22f941a490f..3aa17fec849 100644 --- a/src/mesa/drivers/x11/xfonts.c +++ b/src/mesa/drivers/x11/xfonts.c @@ -1,4 +1,4 @@ -/* $Id: xfonts.c,v 1.13 2001/03/08 15:23:46 brianp Exp $ */ +/* $Id: xfonts.c,v 1.14 2001/04/26 19:28:02 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -258,7 +258,7 @@ void Fake_glXUseXFont( Font font, int first, int count, int listbase ) bm = (GLubyte *) MALLOC((max_bm_width * max_bm_height) * sizeof (GLubyte)); if (!bm) { - XFreeFontInfo( NULL, fs, 0 ); + XFreeFontInfo( NULL, fs, 1 ); _mesa_error(NULL, GL_OUT_OF_MEMORY, "Couldn't allocate bitmap in glXUseXFont()"); return; @@ -373,7 +373,7 @@ bm_height); } FREE(bm); - XFreeFontInfo( NULL, fs, 0 ); + XFreeFontInfo( NULL, fs, 1 ); XFreeGC (dpy, gc); /* Restore saved packing modes. */ |