Fix other memleak in infobar_draw_statustext()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user