(svn r19105) -Fix [FS#3614]: not all news data was properly freed when starting a new game

This commit is contained in:
yexo
2010-02-12 16:42:29 +00:00
parent dd1c72d39a
commit 7d5cfa5884
2 changed files with 5 additions and 2 deletions

View File

@@ -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];
};