[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-datatype-cvs
Subject: [Datatype-cvs] hw/renderer/mp4 mp4videoformat.cpp,1.1.2.2,1.1.2.3
From: jain_1982s () helixcommunity ! org
Date: 2010-01-29 7:16:45
Message-ID: 201001290717.o0T7Hrmm006212 () mailer ! progressive-comp ! com
[Download RAW message or body]
Update of /cvsroot/datatype/hw/renderer/mp4
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv5624/mp4
Modified Files:
Tag: hxclient_3_1_0_atlas
mp4videoformat.cpp
Log Message:
Fixing some memory leaks
Index: mp4videoformat.cpp
===================================================================
RCS file: /cvsroot/datatype/hw/renderer/mp4/mp4videoformat.cpp,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- mp4videoformat.cpp 27 Jan 2010 12:14:49 -0000 1.1.2.2
+++ mp4videoformat.cpp 29 Jan 2010 07:16:40 -0000 1.1.2.3
@@ -151,7 +151,10 @@
m_pRssm = NULL;
}
- m_pCodecLib->Delete(&m_pVidDec);
+ if(m_pVidDec)
+ {
+ m_pCodecLib->Delete(&m_pVidDec);
+ }
HX_DELETE(m_pCodecLib);
_Reset();
}
@@ -173,7 +176,13 @@
//Call Broadcom Flush API.
//Flush all data buffers in the decode pipeline.
//This command is useful when changing the media playback mode.
- m_pCodecLib->FlushBuffers(m_pVidDec);
+ if (m_pCodecLib)
+ {
+ if(m_pVidDec)
+ {
+ m_pCodecLib->FlushBuffers(m_pVidDec);
+ }
+ }
}
HX_RESULT CHXMP4VideoFormat::Init(IHXValues* pHeader)
@@ -473,10 +482,16 @@
m_pMutex->Lock();
m_InputQueue.AddTail(pFrameBuf);
m_pMutex->Unlock();
+ pFrameBuf = NULL;
}
}
}
+ if (pCodecPacket)
+ {
+ HX_VECTOR_DELETE(pCodecPacket->data);
+ HX_VECTOR_DELETE(pCodecPacket);
+ }
return HXR_OK;
}
_______________________________________________
Datatype-cvs mailing list
Datatype-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/datatype-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic