diff --git a/src/apps/haikudepot/ui/FeaturedPackagesView.cpp b/src/apps/haikudepot/ui/FeaturedPackagesView.cpp index d7c7a8ebeb..68a8131130 100644 --- a/src/apps/haikudepot/ui/FeaturedPackagesView.cpp +++ b/src/apps/haikudepot/ui/FeaturedPackagesView.cpp @@ -1109,7 +1109,7 @@ void FeaturedPackagesView::_BuildNoResultsView() { fNoResultsView = new TextDocumentView(); - TextDocumentRef noResultsTextDocument = new TextDocument(); + TextDocumentRef noResultsTextDocument(new(std::nothrow) TextDocument(), true); ParagraphStyle paragraphStyle; paragraphStyle.SetAlignment(ALIGN_CENTER); Paragraph paragraph(paragraphStyle);