]> 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 01:00:51 +0000 (02:00 +0100)
i3bar/src/xcb.c

index 2759f1595f02ed6443d1aadffb28273c6413c1c8..f775aad3ae71c0608c93e9eb063e239f395f292d 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);
     }