summaryrefslogtreecommitdiffstats
path: root/lib/libvgl
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2001-05-30 07:51:56 +0000
committersos <sos@FreeBSD.org>2001-05-30 07:51:56 +0000
commitb515db2560e8f912d65e684abac1d8acc57442e8 (patch)
tree7186cf8f64334a763deb4e5d4e46a7151897a7df /lib/libvgl
parent9a9b22ddc133b96d94ec2c281209e11d655d43f9 (diff)
downloadFreeBSD-src-b515db2560e8f912d65e684abac1d8acc57442e8.zip
FreeBSD-src-b515db2560e8f912d65e684abac1d8acc57442e8.tar.gz
Dont free a hard code array.
PR 20569
Diffstat (limited to 'lib/libvgl')
-rw-r--r--lib/libvgl/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libvgl/text.c b/lib/libvgl/text.c
index aef974a..2117a60 100644
--- a/lib/libvgl/text.c
+++ b/lib/libvgl/text.c
@@ -42,7 +42,7 @@ VGLTextSetFontFile(char *filename)
FILE *fd;
if (VGLTextFont) {
- if (VGLTextFont->BitmapArray)
+ if (VGLTextFont->BitmapArray != VGLFont)
free (VGLTextFont->BitmapArray);
free(VGLTextFont);
}
OpenPOWER on IntegriCloud