[BDAPLGIN]
[reactos.git] / reactos / dll / directx / msdvbnp / enumpins.cpp
index 3887be4..5677059 100644 (file)
@@ -23,7 +23,7 @@ public:
         InterlockedDecrement(&m_Ref);
         if (!m_Ref)
         {
-            //delete this;
+            delete this;
             return 0;
         }
         return m_Ref;
@@ -95,6 +95,8 @@ CEnumPins::Next(
             break;
 
         ppPins[i] = m_Pins[m_Index + i];
+        m_Pins[m_Index + i]->AddRef();
+
         i++;
     }