diff --git a/lib/libvgl/text.c b/lib/libvgl/text.c index aef974a02fc4..2117a601ef9b 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); }