aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index f740500..41b53b0 100644
--- a/src/game.c
+++ b/src/game.c
@@ -67,6 +67,7 @@ void pw_game_free(struct pw_game *game) {
pw_input_free(game->input);
pw_env_free(game->env);
if (game->cart) {
+ pw_fs_sync(game->cart->storage);
pw_cart_free(game->cart);
}
SDL_free(game);