From 92c993ffb36f7d958c73cbefc918f4b300ec398b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 26 Feb 2015 01:47:16 +0100 Subject: [PATCH] Set frame_count back to 0 when cleaning up --- runloop_data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runloop_data.c b/runloop_data.c index 54c56f2c7a..e1fd113f91 100644 --- a/runloop_data.c +++ b/runloop_data.c @@ -271,6 +271,7 @@ static int rarch_main_iterate_image_parse_free(nbio_handle_t *nbio) rpng_nbio_load_image_free(nbio->image.handle); nbio->image.handle = NULL; + nbio->image.frame_count = 0; msg_queue_clear(nbio->image.msg_queue); @@ -408,6 +409,7 @@ static int rarch_main_iterate_nbio_parse_free(nbio_handle_t *nbio) nbio->handle = NULL; nbio->is_blocking = false; nbio->is_finished = false; + nbio->frame_count = 0; msg_queue_clear(nbio->msg_queue);