[Datatype-cvs] tools/dtdriver/dtdrplin/platform/win thrdcbmgr.cpp, 1.4.10.1, 1.4.10.2

[Datatype-cvs] tools/dtdriver/dtdrplin/platform/win thrdcbmgr.cpp, 1.4.10.1, 1.4.10.2

stanb at helixcommunity.org stanb at helixcommunity.org
Fri May 2 12:36:24 PDT 2008


Update of /cvsroot/datatype/tools/dtdriver/dtdrplin/platform/win
In directory cvs.internal.helixcommunity.org:/tmp/cvs-serv22103/datatype/tools/dtdriver/dtdrplin/platform/win

Modified Files:
      Tag: hxclient_3_1_0_atlas
	thrdcbmgr.cpp 
Log Message:
Memory leaks during transcode fixed.


Index: thrdcbmgr.cpp
===================================================================
RCS file: /cvsroot/datatype/tools/dtdriver/dtdrplin/platform/win/thrdcbmgr.cpp,v
retrieving revision 1.4.10.1
retrieving revision 1.4.10.2
diff -u -d -r1.4.10.1 -r1.4.10.2
--- thrdcbmgr.cpp	21 Mar 2008 11:43:41 -0000	1.4.10.1
+++ thrdcbmgr.cpp	2 May 2008 19:36:21 -0000	1.4.10.2
@@ -239,7 +239,10 @@
     // we have to add ref ourself here because our caller could close us.
     // and that is the only way we can tell if we need to signal our event.
     AddRef();
-    Cvtr_OnFileHeader((HX_RESULT) wParam, (IHXValues*)lParam);
+
+    IHXValues* pHeader = (IHXValues*)lParam;
+    Cvtr_OnFileHeader((HX_RESULT) wParam, pHeader);
+    HX_RELEASE(pHeader);
 
     if (m_pPrevMessageFinished)
     {
@@ -256,7 +259,10 @@
     // we have to add ref ourself here because our caller could close us.
     // and that is the only way we can tell if we need to signal our event.
     AddRef();
-    Cvtr_OnStreamHeader((HX_RESULT) wParam, (IHXValues*)lParam);
+
+    IHXValues* pHeader = (IHXValues*)lParam;
+    Cvtr_OnStreamHeader((HX_RESULT) wParam, pHeader);
+    HX_RELEASE(pHeader);
 
     if (m_pPrevMessageFinished)
     {
@@ -290,7 +296,9 @@
     // we have to add ref ourself here because our caller could close us.
     // and that is the only way we can tell if we need to signal our event.
     AddRef();
-    Cvtr_OnPacket((HX_RESULT) wParam, (IHXPacket*)lParam);
+    IHXPacket* pPacket = (IHXPacket*)lParam;
+    Cvtr_OnPacket((HX_RESULT) wParam, pPacket);
+    HX_RELEASE(pPacket);
 
     if (m_pPrevMessageFinished)
     {




More information about the Datatype-cvs mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.