MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / InternalDelete

Method InternalDelete

core/MenuStyle_Base.cpp:852–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852void CBaseMenu::InternalDelete()
853{
854 if (m_bWillFreeHandle && m_hHandle != BAD_HANDLE)
855 {
856 Handle_t hndl = m_hHandle;
857 HandleSecurity sec;
858
859 sec.pOwner = m_pOwner;
860 sec.pIdentity = g_pCoreIdent;
861
862 m_hHandle = BAD_HANDLE;
863 m_bDeleting = true;
864 handlesys->FreeHandle(hndl, &sec);
865 }
866
867 m_pHandler->OnMenuDestroy(this);
868
869 delete this;
870}
871
872unsigned int CBaseMenu::GetMenuOptionFlags()
873{

Callers

nothing calls this directly

Calls 2

FreeHandleMethod · 0.80
OnMenuDestroyMethod · 0.45

Tested by

no test coverage detected