sprixel_free: close mstreamfp if it's open

pull/1988/head
nick black 3 years ago
parent f67091794a
commit f9e24bbed4
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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…
Cancel
Save