Commit 9c40b4a5 authored by Adrien Plazas's avatar Adrien Plazas
Browse files

retro: Deinit RetroRunner on destruction

This helps ensuring we unload the game, deinit the core, and by
extension that cores saving on unload save as expected.

https://bugzilla.gnome.org/show_bug.cgi?id=782772
parent fa418d2e
......@@ -120,18 +120,8 @@ public class Games.RetroRunner : Object, Runner {
}
~RetroRunner () {
if (!is_initialized)
return;
loop.stop ();
running = false;
try {
save ();
}
catch (Error e) {
warning (e.message);
}
pause ();
deinit ();
}
public bool check_is_valid (out string error_message) throws Error {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment