[PORTCLS] Don't leak CPortWaveCyclic.

This commit is contained in:
Thomas Faber 2022-02-15 08:40:20 -05:00
parent ec1eb52ebf
commit 7db9fb3ba6
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -33,7 +33,7 @@ public:
InterlockedDecrement(&m_Ref);
if (!m_Ref)
{
//delete this;
delete this;
return 0;
}
return m_Ref;
@ -41,7 +41,7 @@ public:
IMP_IPortWaveCyclic;
IMP_ISubdevice;
IMP_IPortEvents;
CPortWaveCyclic(IUnknown *OuterUnknown){}
CPortWaveCyclic(IUnknown *OuterUnknown) : m_Ref(0) {}
virtual ~CPortWaveCyclic(){}
protected: