static ULONG html_Release(html_t* html) { ULONG refs; HTML_TRACE("html_Release(%d -> %d)", (int) html->refs, (int) html->refs-1); refs = mc_unref(&html->refs); if(refs == 0) { HTML_TRACE("html_Release: Freeing the HTML object."); free(html); } return refs; }
static ULONG STDMETHODCALLTYPE imgview_stream_Release(IStream* self) { imgview_stream_t* s = MC_STREAM_FROM_IFACE(self); ULONG refs; IMGVIEW_TRACE("imgview_stream_Release(%d -> %d)", (int) s->refs, (int) s->refs-1); refs = mc_unref(&s->refs); if(refs == 0) { IMGVIEW_TRACE("imgview_stream_Release: Freeing the stream object."); free(s); } return refs; }