Fix SourceResolver::State object leak
Initialize m_cRef to 0 in constructor of SourceResolver::State, otherwise it will be leaked Change-Id: I703ef8e91ad88112102ede7e8321d0eca795b840 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
feaa557164
commit
155ae9e88b
@@ -278,7 +278,7 @@ IMFMediaSource* SourceResolver::mediaSource() const
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
SourceResolver::State::State(IMFSourceResolver *sourceResolver, bool fromStream)
|
||||
: m_cRef(1)
|
||||
: m_cRef(0)
|
||||
, m_sourceResolver(sourceResolver)
|
||||
, m_fromStream(fromStream)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user