summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GComboBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/GComboBox.cpp')
-rw-r--r--Libraries/LibGUI/GComboBox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GComboBox.cpp b/Libraries/LibGUI/GComboBox.cpp
index e3d0585a18..090f2688d7 100644
--- a/Libraries/LibGUI/GComboBox.cpp
+++ b/Libraries/LibGUI/GComboBox.cpp
@@ -33,7 +33,7 @@ GComboBox::GComboBox(GWidget* parent)
m_list_window->set_window_type(GWindowType::Tooltip);
m_list_window->set_should_destroy_on_close(false);
- m_list_view = new GListView(nullptr);
+ m_list_view = GListView::construct(nullptr);
m_list_view->horizontal_scrollbar().set_visible(false);
m_list_window->set_main_widget(m_list_view);