Fix other memleak in infobar_draw_statustext()

This commit is contained in:
Philippe Pepiot
2009-11-16 00:51:11 +01:00
parent a812c6d47e
commit 7b30445d19

View File

@@ -229,9 +229,12 @@ infobar_draw_statustext(int sc, char *str)
draw_text(infobar[sc].bar->dr, (sgeo[sc].width - SHADH) - textw(buf),
FHINFOBAR, col, 0, buf);
free(buf);
buf = _strdup(strwc);
++i;
}
free(buf);
}
barwin_refresh(infobar[sc].bar);