Regression: deleting cheats leads to double free and crash
### Is there an existing issue for this?
- [x] This is a bug in RetroArch frontend
- [x] I have searched the existing issues
### Description
When I delete cheats after opening a game, RetroArch crashes.
### Expected behavior
I expect RetroArch to display the notification that the cheats have been deleted, and not crash.
### Steps to reproduce the bug
1. Use a version of Retroarch containing this patch: 3a5775d3fe3ae87e88a2a04b1d3c59674ee881c2.
2. Open a game.
3. Enter Quick Menu.
4. Select Cheats.
5. Select Delete All Cheats.
### Bisect Results
3a5775d3fe3ae87e88a2a04b1d3c59674ee881c2
### Present in the nightly version
Yes
### Platform & operating system
Linux x86_64
### Environment information
_No response_
### Relevant log output
```shell
free(): double free detected in tcache 2
Aborted (core dumped) ./retroarch
```
1 条评论