MCPcopy Create free account
hub / github.com/KDE/kdiff3 / Release

Method Release

diff_ext_for_kdiff3/class_factory.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41STDMETHODIMP_(ULONG)
42CLASS_FACTORY::Release() {
43 ULONG ret = 0L;
44
45 if(InterlockedDecrement((LPLONG)&_ref_count) != 0)
46 ret = _ref_count;
47 else
48 delete this;
49
50 return ret;
51}
52
53STDMETHODIMP
54CLASS_FACTORY::CreateInstance(IUnknown* outer, REFIID refiid, void** obj) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected