MCPcopy Create free account
hub / github.com/LegacyUpdate/LegacyUpdate / Release

Method Release

LegacyUpdate/ClassFactory.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48STDMETHODIMP_(ULONG) CClassFactory::Release(void) {
49 ULONG count = InterlockedDecrement(&m_refCount);
50 if (count == 0) {
51 this->~CClassFactory();
52 CoTaskMemFree(this);
53 }
54 return count;
55}
56
57STDMETHODIMP CClassFactory::CreateInstance(IUnknown *pUnkOuter, REFIID riid, void **ppvObject) {
58 return createFunc(pUnkOuter, riid, ppvObject);

Callers 1

CreateMethod · 0.45

Calls 1

~CClassFactoryMethod · 0.95

Tested by

no test coverage detected