Bazaar developer reference

CvAStar::DeInit()

Defined in
CvAStar.cpp, line 123
Class
CvAStar
Hook name
CivHooks::CvAStar_DeInit

Hooks

static bool BeforeCvAStar_DeInit(CvAStar* self);static void AfterCvAStar_DeInit(CvAStar* self);static void ReplaceCvAStar_DeInit(void (*original)(CvAStar*), CvAStar* self);CivRegisterBefore<CivHooks::CvAStar_DeInit>(host, &BeforeCvAStar_DeInit);CivRegisterAfter<CivHooks::CvAStar_DeInit>(host, &AfterCvAStar_DeInit);CivRegisterReplace<CivHooks::CvAStar_DeInit>(host, &ReplaceCvAStar_DeInit);

Code

122/// Frees allocated memory123void CvAStar::DeInit()124{125	if(m_ppaaNodes != NULL)126	{127		for(int iI = 0; iI < m_iColumns; iI++)128		{129			FFREEALIGNED(m_ppaaNodes[iI]);130		}131132		FFREEALIGNED(m_ppaaNodes);133		m_ppaaNodes=0;134	}135}

Calls

Called by