[oiio] plug memory leak in oiio_destroy, thanks ASAN! #2402

pull/2427/head
nick black 3 years ago
parent e9d299c139
commit 7351b2aff6
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -191,6 +191,10 @@ auto ncvisual_rotate(ncvisual* ncv, double rads) -> int {
auto oiio_destroy(ncvisual* ncv) -> void {
if(ncv){
oiio_details_destroy(ncv->details);
if(ncv->owndata){
free(ncv->data);
}
delete ncv;
}
}

Loading…
Cancel
Save