]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/testsuite.cpp
Fix possible segfault on giving an unknown cmdline argument. index holds the ref...
[user/henk/code/inspircd.git] / src / testsuite.cpp
index 5de5601cbe682f9c51446240e1d54599da8cecc8..8f89fd65e144b63b689a7b7fea3854e7071cffd0 100644 (file)
@@ -186,9 +186,7 @@ bool TestSuite::DoThreadTests()
        cout << "Creating new ThreadEngine class...\n";
        try
        {
-               ThreadEngineFactory* tef = new ThreadEngineFactory();
-               te = tef->Create(ServerInstance);
-               delete tef;
+               te = new ThreadEngine(ServerInstance);
        }
        catch (...)
        {