1.1 --- a/sourcehook/test/test4.cpp Sun Oct 07 23:00:38 2007 +0000
1.2 +++ b/sourcehook/test/test4.cpp Mon Oct 08 14:20:51 2007 +0000
1.3 @@ -54,6 +54,11 @@
1.4 {
1.5 ADD_STATE(State_Func3H_Called);
1.6 }
1.7 +
1.8 + Test *MyTestFactory()
1.9 + {
1.10 + return new Test;
1.11 + }
1.12 }
1.13
1.14 bool TestPlugSys(std::string &error)
1.15 @@ -61,8 +66,8 @@
1.16 GET_SHPTR(g_SHPtr);
1.17 g_PLID = 1;
1.18
1.19 - Test inst;
1.20 - Test *pInst = &inst;
1.21 + Test *pInst = MyTestFactory();
1.22 + CAutoPtrDestruction<Test> apd(pInst);
1.23
1.24 // 1)
1.25 // Add hooks, then issue a complete shutdown