// call to clean up resources when we've been inactive for some time. void InactivityWarning() { #ifdef VERBOSE_DEBUGGING fprintf(stderr, "IcuTransEC::InactivityWarning\n"); #endif FinalRelease(); }
HRESULT STDMETHODCALLTYPE CGainer::Close( void) { if (m_iothread) { notify_message(m_iothread_id, WM_COM_CLOSE); FinalRelease(); } return S_OK; }
// Set refcount to 1 to protect destruction ~CPooledComObject() { m_dwRef = 1L; FinalRelease(); #ifdef _ATL_DEBUG_INTERFACES _Module.DeleteNonAddRefThunk(_GetRawUnknown()); #endif _Module.Unlock(); }
// // Release // STDMETHODIMP_(ULONG) CUnknown::NondelegatingRelease() { if (InterlockedDecrement(&m_cRef) == 0) { FinalRelease(); delete this; return (0); } return (m_cRef); }
// // Release // ULONG STDMETHODCALLTYPE CAxUnknown::NondelegatingRelease() { m_cRef--; if (m_cRef == 0) { FinalRelease() ; delete this ; return 0 ; } return m_cRef ; }
// // Release // ULONG __stdcall CUnknown::NondelegatingRelease() { InterlockedDecrement(&m_cRef) ; if (m_cRef == 0) { FinalRelease() ; delete this ; return 0 ; } return m_cRef ; }
STDMETHOD_(ULONG, Release)() { ULONG l = InternalRelease(); if (l == 0) { if(SUCCEEDED(m_pool.Deactivate(this))) { FinalRelease(); } else delete this; } return l; }
int Initialize(char * strConverterSpec) { #ifdef VERBOSE_DEBUGGING fprintf(stderr, "IcuTranslitEC.CppInitialize() BEGIN\n"); fprintf(stderr, "strConverterSpec '%s'\n", strConverterSpec); #endif if( IsFileLoaded() ) FinalRelease(); m_strConverterSpec = _strdup(strConverterSpec); // do the load at this point; not that we need it, but for checking that everything's okay. return Load(); }
LRESULT CGainer::ResponseHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { bHandled = true; switch (wParam) { case ERROR_OCCURED: FinalRelease(); Fire_Error(lParam); break; case BUTTON_PRESSED: Fire_ButtonPressed(); break; case BUTTON_RELEASED: Fire_ButtonReleased(); break; } return TRUE; }
virtual ~VirtualBoxClientClassFactory() { FinalRelease(); instance = 0; }
// call to clean up resources when we've been inactive for some time. void CPerlExpressionEncConverter::InactivityWarning() { TRACE(_T("CPerlExpressionEncConverter::InactivityWarning\n")); FinalRelease(); }
virtual ~SessionClassFactory() { FinalRelease(); instance = 0; }