mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
fix crash on stop in linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1229 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -32,16 +32,9 @@ void SetVolumeName(const std::string& _rFullPath)
|
||||
if (g_pVolume)
|
||||
{
|
||||
// This code looks scary. Can the try/catch stuff be removed?
|
||||
try
|
||||
{
|
||||
delete g_pVolume;
|
||||
g_pVolume = NULL;
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
printf("Couldn't Delete g_pVolume and set it to Null!\n");
|
||||
}
|
||||
}
|
||||
|
||||
g_pVolume = DiscIO::CreateVolumeFromFilename(_rFullPath);
|
||||
}
|
||||
|
Reference in New Issue
Block a user