diff options
author | Liang Jian <jianliang79@gmail.com> | 2014-04-01 16:12:48 +0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-01 18:40:32 +0200 |
commit | 155ae9e88b07ffb6d38f962624b8ef911f1efe45 (patch) | |
tree | a223597f25148babdc9e3475eacc000ab6fde351 | |
parent | feaa55716486711e6499ae1cc2c84326642f3daa (diff) | |
download | qtmultimedia-155ae9e88b07ffb6d38f962624b8ef911f1efe45.tar.gz |
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>
-rw-r--r-- | src/plugins/wmf/sourceresolver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/wmf/sourceresolver.cpp b/src/plugins/wmf/sourceresolver.cpp index 9ac126bda..57da12282 100644 --- a/src/plugins/wmf/sourceresolver.cpp +++ b/src/plugins/wmf/sourceresolver.cpp @@ -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) { |