mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
ncdirect_dump_plane(): plug memory leak of egc
This commit is contained in:
parent
3895eb911a
commit
3d96b5249b
@ -287,8 +287,10 @@ ncdirect_dump_plane(ncdirect* n, const ncplane* np, int xoff){
|
||||
ncdirect_bg(n, channels_bg(channels));
|
||||
//fprintf(stderr, "%03d/%03d [%s] (%03dx%03d)\n", y, x, egc, dimy, dimx);
|
||||
if(fprintf(n->ttyfp, "%s", strlen(egc) == 0 ? " " : egc) < 0){
|
||||
free(egc);
|
||||
return -1;
|
||||
}
|
||||
free(egc);
|
||||
}
|
||||
if(dimx < totx){
|
||||
ncdirect_bg_default(n);
|
||||
|
Loading…
Reference in New Issue
Block a user