]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: free() text, after drawing it (thx dothebart)
authorAxel Wagner <mail@merovius.de>
Tue, 25 Jan 2011 23:55:15 +0000 (00:55 +0100)
committerAxel Wagner <mail@merovius.de>
Wed, 26 Jan 2011 00:54:36 +0000 (01:54 +0100)
i3bar/src/xcb.c

index b48a6ad92c2bb630ffdd255a8325cfc39ac2ba63..1d7bcd3e4e5aedc1f3cab7b4c3f5cb03f303113b 100644 (file)
@@ -197,6 +197,8 @@ void refresh_statusline() {
 
     draw_text(statusline_pm, statusline_ctx, 0, 0, text, glyph_count);
 
+    FREE(text);
+
     if (xcb_request_failed(sl_pm_cookie, "Could not allocate statusline-buffer")) {
         exit(EXIT_FAILURE);
     }