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:
nakeee 2008-11-20 18:35:35 +00:00
parent 748da8b464
commit 25e307c130

View file

@ -32,15 +32,8 @@ 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");
}
delete g_pVolume;
g_pVolume = NULL;
}
g_pVolume = DiscIO::CreateVolumeFromFilename(_rFullPath);