mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-04 06:00:30 +00:00
[plots] free up title in destructor
This commit is contained in:
parent
021fc052fc
commit
f968ba7774
@ -407,6 +407,7 @@ int sample_##T(const nc##X##plot* ncp, int64_t x, T* y){ \
|
||||
return 0; \
|
||||
} \
|
||||
void destroy_##T(nc##X##plot* ncpp){ \
|
||||
free(ncpp->title); \
|
||||
free(ncpp->slots); \
|
||||
ncplane_destroy(ncpp->ncp); \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user