1.1 --- a/sourcehook/test/testmanual.cpp Sun Oct 07 23:00:38 2007 +0000
1.2 +++ b/sourcehook/test/testmanual.cpp Mon Oct 08 14:20:51 2007 +0000
1.3 @@ -99,6 +99,11 @@
1.4 RETURN_META(MRES_SUPERCEDE);
1.5 }
1.6 };
1.7 +
1.8 + TheWall *MyInstanceFactory()
1.9 + {
1.10 + return new TheWall;
1.11 + }
1.12 }
1.13
1.14 bool TestManual(std::string &error)
1.15 @@ -106,8 +111,8 @@
1.16 GET_SHPTR(g_SHPtr);
1.17 g_PLID = 1337;
1.18
1.19 - TheWall inst;
1.20 - TheWall *p = &inst;
1.21 + TheWall *p = MyInstanceFactory();
1.22 + CAutoPtrDestruction<TheWall> apd(p);
1.23
1.24 SourceHook::ManualCallClass *cc = SH_GET_MCALLCLASS(p, sizeof(void*));
1.25