mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
[oiio] plug memory leak in oiio_destroy, thanks ASAN! #2402
This commit is contained in:
parent
e9d299c139
commit
7351b2aff6
@ -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…
Reference in New Issue
Block a user