summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor/MemoryStatsWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/SystemMonitor/MemoryStatsWidget.cpp')
-rw-r--r--Applications/SystemMonitor/MemoryStatsWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/SystemMonitor/MemoryStatsWidget.cpp b/Applications/SystemMonitor/MemoryStatsWidget.cpp
index b0d1331d61..889bea9114 100644
--- a/Applications/SystemMonitor/MemoryStatsWidget.cpp
+++ b/Applications/SystemMonitor/MemoryStatsWidget.cpp
@@ -23,7 +23,7 @@ MemoryStatsWidget::MemoryStatsWidget(GraphWidget& graph, GWidget* parent)
layout()->set_spacing(3);
auto build_widgets_for_label = [this](const String& description) -> ObjectPtr<GLabel> {
- auto* container = new GWidget(this);
+ auto container = GWidget::construct(this);
container->set_layout(make<GBoxLayout>(Orientation::Horizontal));
container->set_size_policy(SizePolicy::Fixed, SizePolicy::Fixed);
container->set_preferred_size(275, 12);