From 409c6c3abe359e593878700b67dd643a65691356 Mon Sep 17 00:00:00 2001 From: sletz Date: Wed, 14 May 2008 08:41:07 +0000 Subject: [PATCH] Fix exception handling in JackShmMem::operator new. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2256 0c269be4-1314-0410-8aa9-9f06e86f4224 --- ChangeLog | 4 ++++ common/JackShmMem.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f3807d18..e0aa2d22 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,10 @@ Fernando Lopez-Lezcano Jackdmp changes log --------------------------- +2008-05-13 Stephane Letz + + * Fix exception handling in JackShmMem::operator new. + 2008-05-12 Stephane Letz * Allows wrapper library to log in a file (using JACK_WRAPPER_DEBUG=file). diff --git a/common/JackShmMem.cpp b/common/JackShmMem.cpp index 0d341f33..45be8ac9 100644 --- a/common/JackShmMem.cpp +++ b/common/JackShmMem.cpp @@ -60,7 +60,7 @@ void* JackShmMem::operator new(size_t size) error: jack_error("JackShmMem::new bad alloc", size); - throw new std::bad_alloc; + throw std::bad_alloc(); } void JackShmMem::operator delete(void* p, size_t size)