From 25e307c130e26877af7b9be579d9d0e15a0a60b9 Mon Sep 17 00:00:00 2001 From: nakeee Date: Thu, 20 Nov 2008 18:35:35 +0000 Subject: [PATCH] fix crash on stop in linux git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1229 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/VolumeHandler.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Source/Core/Core/Src/VolumeHandler.cpp b/Source/Core/Core/Src/VolumeHandler.cpp index 74016568e3..acf67477e3 100644 --- a/Source/Core/Core/Src/VolumeHandler.cpp +++ b/Source/Core/Core/Src/VolumeHandler.cpp @@ -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);