diff -r 08583103ba6f -r 093c72464b35 sourcehook/test/test2.cpp --- a/sourcehook/test/test2.cpp Sun Oct 07 23:00:38 2007 +0000 +++ b/sourcehook/test/test2.cpp Mon Oct 08 14:20:51 2007 +0000 @@ -84,6 +84,11 @@ ADD_STATE(State_Vafmt_PostHandler_Called(2, std::string(in))); return 0.0f; } + + IGaben *MyInstanceFactory() + { + return new IGaben; + } } @@ -93,8 +98,8 @@ GET_SHPTR(g_SHPtr); g_PLID = 1337; - IGaben gabgab; - IGaben *pGab = &gabgab; + IGaben *pGab = MyInstanceFactory(); + CAutoPtrDestruction apd(pGab); // Part 1 SH_CALL(pGab, static_cast(&IGaben::EatYams))();