From 0a32ecf1fe99a0fb0a81d5e372a68261372eecd8 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Tue, 18 Aug 2009 04:33:39 +0200 Subject: [PATCH] WMCreateFont: Add missing wfree()'s I removed (forgot) them when in commit ee28b0257ab5 ("Avoid returning font=NULL in WMCreateFont()"). Add them back. --- WINGs/wfont.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WINGs/wfont.c b/WINGs/wfont.c index 9de1c7e1..ceab0947 100644 --- a/WINGs/wfont.c +++ b/WINGs/wfont.c @@ -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");