Free everything when exiting theme preview

This commit is contained in:
2018-05-10 21:17:35 -04:00
parent 305c55e6b2
commit 5bb98a7fe2
2 changed files with 5 additions and 1 deletions

View File

@@ -501,6 +501,7 @@ Result load_audio(Entry_s entry, audio_s *audio)
} else {
free(audio->filebuf);
free(audio);
fclose(file);
DEBUG("fmemopen failed!\n");
return MAKERESULT(RL_FATAL, RS_NOTFOUND, RM_APPLICATION, RD_NOT_FOUND);
}