From cd0b925fa12df0e13ed97d239870c927186d9ece Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 14 May 2016 06:00:53 +0200 Subject: [PATCH] Try to see if this gets us past the crash --- tasks/task_image.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/task_image.c b/tasks/task_image.c index c588f3486e..6768b41433 100644 --- a/tasks/task_image.c +++ b/tasks/task_image.c @@ -394,10 +394,13 @@ bool rarch_task_push_image_load(const char *fullpath, error: if (t) free(t); - if (nbio->image) - free(nbio->image); if (nbio) + { + if (nbio->image) + free(nbio->image); free(nbio); + } + RARCH_ERR("[image load] Failed to open '%s': %s.\n", fullpath, strerror(errno)); return false;