mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-23 01:56:08 -04:00
- Fix memory leak in PopulateGridView() and FilterGridView() by properly deleting old QStandardItemModel instances before creating new ones - Add safety checks in controller navigation to prevent crashes when accessing uninitialized controller data - Improve controller input handling to only send events to visible and properly initialized views - Add null pointer checks in SetViewMode() to prevent crashes when setting current index on empty models - Add proper cleanup in GameList destructor to prevent memory leaks on application shutdown The main issue was that switching between list and grid views created new models without properly cleaning up old ones, leading to memory leaks. Additionally, controller navigation would send keyboard events to both views simultaneously, causing crashes when one view was not properly initialized or visible. Fixes crashes when using controller navigation in grid view mode. Thanks to Beta Testers acarajé & Hayate Yoshida (吉田 疾風) for finding the bug. Signed-off-by: Zephyron <zephyron@citron-emu.org>