[plots] free up title in destructor

This commit is contained in:
nick black 2021-04-02 00:07:49 -04:00
parent 021fc052fc
commit f968ba7774
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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); \
}