mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-12 09:51:24 +02: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:
parent
748da8b464
commit
25e307c130
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user