Files
dolphin/Source
dok.slade 3ad596102a DolphinQt: Fix use-after-free of FilesystemWidget context menu
The context menu was created with Qt::WA_DeleteOnClose, but its actions
open modal dialogs from within QMenu's own activation code. A nested
event loop could process the menu's deferred deletion before control
returned to QMenu, which then accessed freed memory, causing crashes or
heap corruption.

Own the menu with a std::unique_ptr so it is only destroyed once
QMenu::exec has returned.

Fixes https://bugs.dolphin-emu.org/issues/13816
2026-11-13 00:23:25 +01:00
..