]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/threadengines/threadengine_pthread.cpp
threadengine_pthread Throw CoreExceptions instead of CoreException pointers
[user/henk/code/inspircd.git] / src / threadengines / threadengine_pthread.cpp
index e16e401f3387927773777c952e18617ce69f2aa1..40205da3118533479382f8f7f8dba2b5e182ffe1 100644 (file)
@@ -109,7 +109,7 @@ SocketThread::SocketThread()
        signal.sock = NULL;
        int fd = eventfd(0, EFD_NONBLOCK);
        if (fd < 0)
-               throw new CoreException("Could not create pipe " + std::string(strerror(errno)));
+               throw CoreException("Could not create pipe " + std::string(strerror(errno)));
        signal.sock = new ThreadSignalSocket(this, fd);
 }
 #else
@@ -160,7 +160,7 @@ SocketThread::SocketThread()
        signal.sock = NULL;
        int fds[2];
        if (pipe(fds))
-               throw new CoreException("Could not create pipe " + std::string(strerror(errno)));
+               throw CoreException("Could not create pipe " + std::string(strerror(errno)));
        signal.sock = new ThreadSignalSocket(this, fds[0], fds[1]);
 }
 #endif