Permalink
Browse files

NDSSystem.cpp: Check for the GPU struct before calling GPUSubsystem::…

…ForceFrameStop() in GameInfo::closeROM().
  • Loading branch information...
rogerman committed Feb 4, 2018
1 parent 23be799 commit 9ee7cd8ec0fc0737de2ce794100f48cea7ed7ea3
Showing with 4 additions and 3 deletions.
  1. +4 −3 desmume/src/NDSSystem.cpp
@@ -570,12 +570,13 @@ bool GameInfo::loadROM(std::string fname, u32 type)
void GameInfo::closeROM()
{
GPU->ForceFrameStop();
if (GPU != NULL)
GPU->ForceFrameStop();
if (reader)
if (reader != NULL)
reader->DeInit(fROM);
if (romdataForReader)
if (romdataForReader != NULL)
delete [] romdataForReader;
fROM = NULL;

0 comments on commit 9ee7cd8

Please sign in to comment.