]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/threadengines/threadengine_pthread.cpp
Merge insp20
[user/henk/code/inspircd.git] / src / threadengines / threadengine_pthread.cpp
index 6456d6df555c2ff44e96add3cd4bbe4729449a59..3249f442bfb31e5662cfed2d8853eea7b2730f20 100644 (file)
@@ -95,7 +95,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
@@ -148,7 +148,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