summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/evdev
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2026-07-09 21:11:43 -0700
committerDentomologist <dentomologist@gmail.com>2026-07-11 12:35:47 -0700
commit37dd6c287eac591b4d97cbfd90d16c2093b68020 (patch)
tree4bcead81484e6d0aa26825701d55ad20303d22fa /Source/Core/InputCommon/ControllerInterface/evdev
parent6de526c684ee6dd8b6fc3447dae858ae480ccbb5 (diff)
ResourcePackManager: Fix crash when removing pack
Avoid accessing destroyed `QTableWidgetItem` by retrieving the desired path from the item before it's destroyed. In `ResourcePackManager::Remove` pointers to the selected items in `m_table_widget` were saved in the local variable `items` before calling `Uninstall`. `Uninstall` called `RepopulateTable` which called `m_table_widget->clear()`, destroying the table's descendants. Upon returning to `Remove` `items` then pointed to some of those destroyed descendants, and passing `items[0]` to `GetResourcePackIndex` resulted in a call to `item->row()` which was a use-after-free. Fixes https://bugs.dolphin-emu.org/issues/14095.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev')
0 files changed, 0 insertions, 0 deletions