mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
[bugfix] FS#13812 - ZXBox always returns a leak file handles error
tapefiles return a leak handle error if it is quit before end of tape is reached, ensure it always gets closed on exit Change-Id: I0f6224c7164fd87c209166be9e10d62d6a644a50
This commit is contained in:
parent
4503d63ec8
commit
951cbdbec6
1 changed files with 3 additions and 0 deletions
|
|
@ -47,6 +47,8 @@
|
|||
|
||||
#include "zxbox_keyb.h"
|
||||
|
||||
#include "tapefile.h"
|
||||
|
||||
int endofsingle IBSS_ATTR;
|
||||
|
||||
int sp_nosync IBSS_ATTR = 0;
|
||||
|
|
@ -519,4 +521,5 @@ void start_spectemu(const void *parameter)
|
|||
init_spect_key();
|
||||
|
||||
run_singlemode();
|
||||
close_tapefile(); /* Bugfix leak file handles */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue