mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Merge pull request #12947 from Dentomologist/qtutils_clearlayoutrecursively_fix_potential_crash
QtUtils/ClearLayoutRecursively: Fix potential crash
This commit is contained in:
commit
9ae560d8a0
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user