diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-04-26 19:28:29 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-04-26 19:28:29 +0000 |
commit | 89e8b95d8bd69fb93e82d0b0bed8e73a2f8ccea8 (patch) | |
tree | 699808419cda3c5db7c50aa3c26e0848ceb897b6 | |
parent | 736400f6b989fedc50d316df2f120d7cee934ff6 (diff) |
fixed mem leak in XFreeFontInfo() call
-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 2c07e924040..3a5c1cc108b 100644 --- a/src/mesa/drivers/x11/xfonts.c +++ b/src/mesa/drivers/x11/xfonts.c @@ -1,4 +1,4 @@ -/* $Id: xfonts.c,v 1.6.4.4 2001/02/09 08:25:18 joukj Exp $ */ +/* $Id: xfonts.c,v 1.6.4.5 2001/04/26 19:28:29 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -260,7 +260,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 ); gl_error(NULL, GL_OUT_OF_MEMORY, "Couldn't allocate bitmap in glXUseXFont()"); return; @@ -375,7 +375,7 @@ bm_height); } FREE(bm); - XFreeFontInfo( NULL, fs, 0 ); + XFreeFontInfo( NULL, fs, 1 ); XFreeGC (dpy, gc); /* Restore saved packing modes. */ |