From ede676bc055796ccfa01705109d95500e3548fd7 Mon Sep 17 00:00:00 2001 From: rapperskull Date: Sat, 29 May 2021 16:09:33 +0200 Subject: [PATCH] Fix memory leak in 'XISO to HDD Installer' script (#6) --- .../scripts/XBMC4Gamers Extras/XISO to HDD Installer/default.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Mod Files/system/scripts/XBMC4Gamers Extras/XISO to HDD Installer/default.py b/Mod Files/system/scripts/XBMC4Gamers Extras/XISO to HDD Installer/default.py index 6288068..5e9211b 100644 --- a/Mod Files/system/scripts/XBMC4Gamers Extras/XISO to HDD Installer/default.py +++ b/Mod Files/system/scripts/XBMC4Gamers Extras/XISO to HDD Installer/default.py @@ -72,6 +72,7 @@ def extract_defaultxbe(iso_file, iso_info): f.seek(file_size+file_size+file_size) f.write(iso_file.read(file_size)) f.close() + root_sector_buffer.close() def prepare_attachxbe(iso_filename): iso_name = iso_filename[:-4].replace('_1','').replace('_2','').replace('.1','').replace('.2','').split('(',1)[0] iso_folder_name = (iso_name[:36]) if len(iso_name) > 36 else iso_name # truncate the name to 42 characters, reason is the .iso.