sixel: free sixelmap on recycle #2104

This commit is contained in:
nick black 2021-08-26 08:29:04 -04:00
parent 06351d5a39
commit 28bc8411b5
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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;
} }