ncvisual_destroy() for null multimedia #568

This commit is contained in:
nick black 2020-05-06 03:06:06 -04:00
parent 102ff0a7ce
commit b420722bfe
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -780,8 +780,13 @@ int ncvisual_init(int loglevel){
}
void ncvisual_destroy(ncvisual* ncv){
assert(!ncv);
(void)ncv;
if(ncv){
if(ncv->ncobj){
ncplane_destroy(ncv->ncp);
}
free(ncv->data);
delete ncv;
}
}
#else
#ifdef USE_OIIO