[plots] free up title in destructor

pull/1499/head
nick black 4 years ago
parent 021fc052fc
commit f968ba7774
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -407,6 +407,7 @@ int sample_##T(const nc##X##plot* ncp, int64_t x, T* y){ \
return 0; \ return 0; \
} \ } \
void destroy_##T(nc##X##plot* ncpp){ \ void destroy_##T(nc##X##plot* ncpp){ \
free(ncpp->title); \
free(ncpp->slots); \ free(ncpp->slots); \
ncplane_destroy(ncpp->ncp); \ ncplane_destroy(ncpp->ncp); \
} }

Loading…
Cancel
Save