~Pimpl() { if (control != 0) { control->Close (OLECLOSE_NOSAVE); control->Release(); } clientSite->Release(); storage->Release(); }
duFlash::~duFlash() { if (m_pFlash) { IOleObject * pObject = NULL; if (SUCCEEDED(m_pFlash->QueryInterface(IID_IOleObject,(void**)&pObject))) { pObject->Close(0); pObject->Release(); } m_pFlash->Release(); m_pFlash = NULL; } if (m_pContainer) { m_pContainer->Release(); m_pContainer = NULL; } }
// @pymethod |PyIOleObject|Close|Description of Close. PyObject *PyIOleObject::Close(PyObject *self, PyObject *args) { IOleObject *pIOO = GetI(self); if ( pIOO == NULL ) return NULL; // @pyparm int|dwSaveOption||Description for dwSaveOption DWORD dwSaveOption; if ( !PyArg_ParseTuple(args, "i:Close", &dwSaveOption) ) return NULL; HRESULT hr; PY_INTERFACE_PRECALL; hr = pIOO->Close( dwSaveOption ); PY_INTERFACE_POSTCALL; if ( FAILED(hr) ) return OleSetOleError(hr); Py_INCREF(Py_None); return Py_None; }
~Win32HtmlViewRep(){ inPlaceObject->Release(); iBrowser->Release(); oleObject->Close(OLECLOSE_NOSAVE); oleObject->Release(); }