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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user