diff --git a/Source/Core/DolphinQt/QtUtils/ClearLayoutRecursively.cpp b/Source/Core/DolphinQt/QtUtils/ClearLayoutRecursively.cpp index b7e588d01b..8869c8092d 100644 --- a/Source/Core/DolphinQt/QtUtils/ClearLayoutRecursively.cpp +++ b/Source/Core/DolphinQt/QtUtils/ClearLayoutRecursively.cpp @@ -17,7 +17,7 @@ void ClearLayoutRecursively(QLayout* layout) if (child->widget()) { layout->removeWidget(child->widget()); - delete child->widget(); + child->widget()->deleteLater(); } else if (child->layout()) {