







Slice could be not using any members)




















// Create a DemoEditor to do the job
CDemoEditor *DemoEditor = new CDemoEditor();
DemoEditor->Init(m_pGameClient->NetVersion(), &m_SnapshotDelta, m_pConsole, m_pStorage);



delete m_pDemoEditor; does that right?





new, free it with delete, if you allocate it with malloc free it with freeunique_ptr there it'd free itself when it goes out of scopeCDemoEditor m_Editor; as a member in the CJob then initialize the editor in the constructor of the job