summaryrefslogtreecommitdiff
path: root/modules/commands/os_news.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/os_news.cpp')
-rw-r--r--modules/commands/os_news.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp
index 283c302af..0833fbaa6 100644
--- a/modules/commands/os_news.cpp
+++ b/modules/commands/os_news.cpp
@@ -72,7 +72,7 @@ class MyNewsService : public NewsService
{
for (unsigned i = 0; i < 3; ++i)
for (unsigned j = 0; j < newsItems[i].size(); ++j)
- newsItems[i][j]->Destroy();
+ delete newsItems[i][j];
}
void AddNewsItem(NewsItem *n)
@@ -86,7 +86,7 @@ class MyNewsService : public NewsService
std::vector<NewsItem *>::iterator it = std::find(list.begin(), list.end(), n);
if (it != list.end())
list.erase(it);
- n->Destroy();
+ delete n;
}
std::vector<NewsItem *> &GetNewsList(NewsType t)