From a711c8be17620fb8360be29d4dc56fe271ff548b Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 21 Apr 2014 23:30:04 -0300 Subject: [PATCH] Fix throw of exceptions in FileSystemModule ctor --- src/app/file_system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/file_system.cpp b/src/app/file_system.cpp index b6e5d57dd..58f90ba67 100644 --- a/src/app/file_system.cpp +++ b/src/app/file_system.cpp @@ -206,12 +206,12 @@ FileSystemModule::FileSystemModule() /* get the IMalloc interface */ HRESULT hr = SHGetMalloc(&shl_imalloc); if (hr != S_OK) - throw new std::runtime_error("Error initializing file system. Report this problem. (SHGetMalloc failed.)"); + throw std::runtime_error("Error initializing file system. Report this problem. (SHGetMalloc failed.)"); /* get desktop IShellFolder interface */ hr = SHGetDesktopFolder(&shl_idesktop); if (hr != S_OK) - throw new std::runtime_error("Error initializing file system. Report this problem. (SHGetDesktopFolder failed.)"); + throw std::runtime_error("Error initializing file system. Report this problem. (SHGetDesktopFolder failed.)"); #endif // first version of the file system