mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
[ncplane_erase] call destroy_tam() #2286
This commit is contained in:
parent
7be722edb3
commit
2b86835faa
@ -726,6 +726,7 @@ destroy_tam(ncplane* p){
|
|||||||
if(p->tam){
|
if(p->tam){
|
||||||
cleanup_tam(p->tam, p->leny, p->lenx);
|
cleanup_tam(p->tam, p->leny, p->lenx);
|
||||||
free(p->tam);
|
free(p->tam);
|
||||||
|
p->tam = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2170,6 +2170,7 @@ void ncplane_erase(ncplane* n){
|
|||||||
loginfo("erasing plane\n");
|
loginfo("erasing plane\n");
|
||||||
if(n->sprite){
|
if(n->sprite){
|
||||||
sprixel_hide(n->sprite);
|
sprixel_hide(n->sprite);
|
||||||
|
destroy_tam(n);
|
||||||
}
|
}
|
||||||
// we must preserve the background, but a pure nccell_duplicate() would be
|
// we must preserve the background, but a pure nccell_duplicate() would be
|
||||||
// wiped out by the egcpool_dump(). do a duplication (to get the stylemask
|
// wiped out by the egcpool_dump(). do a duplication (to get the stylemask
|
||||||
|
Loading…
Reference in New Issue
Block a user