mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
sixel: free sixelmap on recycle #2104
This commit is contained in:
parent
06351d5a39
commit
28bc8411b5
@ -61,6 +61,8 @@ sprixel* sprixel_recycle(ncplane* n){
|
|||||||
sprixel_hide(hides);
|
sprixel_hide(hides);
|
||||||
return sprixel_alloc(&nc->tcache, n, dimy, dimx);
|
return sprixel_alloc(&nc->tcache, n, dimy, dimx);
|
||||||
}
|
}
|
||||||
|
sixelmap_free(n->sprite->smap);
|
||||||
|
n->sprite->smap = NULL;
|
||||||
return n->sprite;
|
return n->sprite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user