diff --git a/src/media/oiio.cpp b/src/media/oiio.cpp index 00a056b35..2668e0715 100644 --- a/src/media/oiio.cpp +++ b/src/media/oiio.cpp @@ -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; } }