retrohub-org / retrohub

Retrogaming library frontend, built to be a highly customizable platform.
https://retrohub-org.github.io/
MIT License
110 stars 6 forks source link

Fix game data being updated while theme is unloading #279

Closed rsubtil closed 10 months ago

rsubtil commented 10 months ago

The _update_game_statistics() internally saves game data, which in turn propagates to themes that they were being updated. Since themes are being unloaded, some objects could still run code while the theme was unloaded already, resulting in a crash.