]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: load_font: free reply after using it
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 31 Jul 2011 15:57:11 +0000 (17:57 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 31 Jul 2011 15:57:11 +0000 (17:57 +0200)
src/xcb.c

index 115fafe9c916d2ab27eba9dd2518c5d801eac13b..298abd9c855cfd5a6da7d6a02535c609c760e94c 100644 (file)
--- 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;
 }