Bazaar developer reference

CvTwoLayerPathFinder::DeInit()

Defined in
CvAStar.cpp, line 2822
Class
CvTwoLayerPathFinder
Hook name
CivHooks::CvTwoLayerPathFinder_DeInit

Hooks

static bool BeforeCvTwoLayerPathFinder_DeInit(CvTwoLayerPathFinder* self);static void AfterCvTwoLayerPathFinder_DeInit(CvTwoLayerPathFinder* self);static void ReplaceCvTwoLayerPathFinder_DeInit(void (*original)(CvTwoLayerPathFinder*), CvTwoLayerPathFinder* self);CivRegisterBefore<CivHooks::CvTwoLayerPathFinder_DeInit>(host, &BeforeCvTwoLayerPathFinder_DeInit);CivRegisterAfter<CivHooks::CvTwoLayerPathFinder_DeInit>(host, &AfterCvTwoLayerPathFinder_DeInit);CivRegisterReplace<CivHooks::CvTwoLayerPathFinder_DeInit>(host, &ReplaceCvTwoLayerPathFinder_DeInit);

Code

2821/// Frees allocated memory2822void CvTwoLayerPathFinder::DeInit()2823{2824	CvAStar::DeInit();28252826	if(m_ppaaPartialMoveNodes != NULL)2827	{2828		for(int iI = 0; iI < m_iColumns; iI++)2829		{2830			SAFE_DELETE_ARRAY(m_ppaaPartialMoveNodes[iI]);2831		}28322833		SAFE_DELETE_ARRAY(m_ppaaPartialMoveNodes);2834	}2835}

Calls

Called by