From: Michael Stapelberg Date: Sun, 31 Jul 2011 15:57:11 +0000 (+0200) Subject: Bugfix: load_font: free reply after using it X-Git-Tag: 4.0~14^2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d9ff172d36a7d14426d9437e6378fe6e9beba3b8;p=i3%2Fi3 Bugfix: load_font: free reply after using it --- diff --git a/src/xcb.c b/src/xcb.c index 115fafe9..298abd9c 100644 --- a/src/xcb.c +++ b/src/xcb.c @@ -62,6 +62,8 @@ i3Font load_font(const char *pattern, bool fallback) { new.height = reply->font_ascent + reply->font_descent; + free(reply); + return new; }