1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-04 04:44:16 +01:00

WMCreateFont: Add missing wfree()'s

I removed (forgot) them when in commit ee28b0257a ("Avoid returning
font=NULL in WMCreateFont()"). Add them back.
This commit is contained in:
Carlos R. Mafra
2009-08-18 04:33:39 +02:00
parent 9baff1363c
commit 0a32ecf1fe

View File

@@ -165,6 +165,8 @@ WMCreateFont(WMScreen *scrPtr, char *fontName)
font->font = XftFontOpenName(display, scrPtr->screen, DEFAULT_FONT);
if (!font->font) {
printf("Unrecoverable font error! I must die!\n");
wfree(font);
wfree(fname);
exit(1);
} else
printf("Default font loading succeded.\n");