Commit 14c188e8 authored by Kevin E Martin's avatar Kevin E Martin

Called strlen with (f->file) without checking for NULL (which happens when

    directly using FT_Face objects) (Bug #1047, Keith Packard).
parent 591dcad6
......@@ -289,7 +289,8 @@ _XftReleaseFile (XftFtFile *f)
if (f->face)
FT_Done_Face (f->face);
}
XftMemFree (XFT_MEM_FILE, sizeof (XftFtFile) + strlen (f->file) + 1);
XftMemFree (XFT_MEM_FILE,
sizeof (XftFtFile) + f->file ? strlen (f->file) + 1 : 0);
free (f);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment