Merge pull request #1443 from janisozaur/patch-1
Fix mismatched new/delete operators
This commit is contained in:
commit
45bf5e51b1
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue