Fix mismatched new/delete operators

This commit is contained in:
Michał Janiszewski 2018-10-28 13:18:25 +01:00 committed by GitHub
parent 5496b52cdf
commit 2cae875fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ u32 RomSize;
#include <sys/mman.h>
#endif
fd_t* RomCacheMap;
fd_t* RomCacheMap = NULL;
u32 RomCacheMapCount;
char SelectedFile[512];
@ -89,7 +89,7 @@ bool naomi_cart_LoadRom(char* file)
if (RomCacheMap)
{
RomCacheMapCount = 0;
delete RomCacheMap;
delete[] RomCacheMap;
}
RomCacheMapCount = (u32)files.size();