/*=========================================================================== Function static void ReleaseIf(IBase **ppif) Description ----------- releases the interface pointer, sets it to null Parameters ---------- IBase **ppif: interfacee pointer Returns ------- nothing ===========================================================================*/ static void ReleaseIf(IBase **ppif) { if ((IBase *)0 != *ppif) { IBASE_Release(*ppif); *ppif = (IBase *)0; } }
/*=========================================================================== This function releases IBase. ===========================================================================*/ void TS_FreeIF(IBase ** ppif) { if (ppif && *ppif) { IBASE_Release(*ppif); *ppif = NULL; } }