none_destroy: free up subdata #1711

pull/1713/head
nick black 3 years ago
parent 82fb065795
commit d8c9463175
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -963,6 +963,7 @@ ncvisual* ncvisual_from_plane(const ncplane* n, ncblitter_e blit, int begy, int
void ncvisual_destroy(ncvisual* ncv){
if(ncv){
if(visual_implementation == NULL){
fprintf(stderr, "OWNDATA: %u data: %p\n", ncv->owndata, ncv->data);
if(ncv->owndata){
free(ncv->data);
}

@ -9,6 +9,9 @@ ncvisual* none_create(){
}
void none_destroy(ncvisual* ncv){
if(ncv->owndata){
free(ncv->data);
}
delete ncv;
}

Loading…
Cancel
Save