mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00: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){
|
void sprixel_free(sprixel* s){
|
||||||
if(s){
|
if(s){
|
||||||
loginfo("Destroying sprixel %u\n", s->id);
|
loginfo("Destroying sprixel %u\n", s->id);
|
||||||
|
if(s->mstreamfp){
|
||||||
|
fclose(s->mstreamfp);
|
||||||
|
}
|
||||||
if(s->n){
|
if(s->n){
|
||||||
s->n->sprite = NULL;
|
s->n->sprite = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user