[bugfix] FS#13812 - ZXBox always returns a leak file handles error

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 951cbdbec6afd5b6ee6d4f6ec09d7de2ff56610a
Author: William Wilgus <[email protected]>
Date:   Sun Mar 8 12:07:53 2026 -0400

    [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

diff --git a/apps/plugins/zxbox/spmain.c b/apps/plugins/zxbox/spmain.c
index 6147dadcd2..c4fccff9ae 100644
--- a/apps/plugins/zxbox/spmain.c
+++ b/apps/plugins/zxbox/spmain.c
@@ -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 */
 }
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.