mirror of
https://github.com/libretro/bk-emulator.git
synced 2024-11-23 08:49:54 +00:00
Fix wrong munmap
This commit is contained in:
parent
03ce4725c2
commit
c5c67078dd
@ -40,7 +40,7 @@ void tdisk_finish() {
|
||||
for (i = 0; i < 4; i++) {
|
||||
if (!tdisks[i].image)
|
||||
continue;
|
||||
munmap(tdisks[i].image, tdisks[i].length);
|
||||
if (tdisks[i].length > 0) free(tdisks[i].image);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user