Merge pull request #1443 from janisozaur/patch-1

Fix mismatched new/delete operators
This commit is contained in:
David Miller 2018-10-28 09:17:01 -04:00 committed by GitHub
commit 45bf5e51b1
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> #include <sys/mman.h>
#endif #endif
fd_t* RomCacheMap; fd_t* RomCacheMap = NULL;
u32 RomCacheMapCount; u32 RomCacheMapCount;
char SelectedFile[512]; char SelectedFile[512];
@ -89,7 +89,7 @@ bool naomi_cart_LoadRom(char* file)
if (RomCacheMap) if (RomCacheMap)
{ {
RomCacheMapCount = 0; RomCacheMapCount = 0;
delete RomCacheMap; delete[] RomCacheMap;
} }
RomCacheMapCount = (u32)files.size(); RomCacheMapCount = (u32)files.size();