mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[PORTCLS] Don't leak CPortWaveCyclic.
This commit is contained in:
parent
ec1eb52ebf
commit
7db9fb3ba6
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue