Use memnew() instead of new.

This commit is contained in:
Relintai 2022-07-03 17:35:07 +02:00
parent b8d602f847
commit 899e3b671d

View File

@ -47,7 +47,7 @@ void PagedArticles::load() {
if (dir->current_is_dir() && file_name != "." && file_name != "..") {
String ff = folder + "/" + file_name;
PagedArticle *p = new PagedArticle();
PagedArticle *p = memnew(PagedArticle);
p->set_articles_folder(ff);
p->set_uri_segment(file_name);