mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
sprixel_free: close mstreamfp if it's open
This commit is contained in:
parent
f67091794a
commit
f9e24bbed4
@ -42,6 +42,9 @@ void sprixel_debug(const sprixel* s, FILE* out){
|
||||
void sprixel_free(sprixel* s){
|
||||
if(s){
|
||||
loginfo("Destroying sprixel %u\n", s->id);
|
||||
if(s->mstreamfp){
|
||||
fclose(s->mstreamfp);
|
||||
}
|
||||
if(s->n){
|
||||
s->n->sprite = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user