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

This commit is contained in:
nick black 2021-12-02 02:44:38 -05:00
parent e9d299c139
commit 7351b2aff6
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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;
}
}