mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
ncvisual_destroy() for null multimedia #568
This commit is contained in:
parent
102ff0a7ce
commit
b420722bfe
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user