diff options
Diffstat (limited to 'src/news_type.h')
-rw-r--r-- | src/news_type.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/news_type.h b/src/news_type.h index 8fbd90454..418334c73 100644 --- a/src/news_type.h +++ b/src/news_type.h @@ -144,6 +144,11 @@ struct NewsItem { void *free_data; ///< Data to be freed when the news item has reached its end. + ~NewsItem() + { + free(this->free_data); + } + uint64 params[10]; }; |