diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2015-04-11 19:33:55 +0400 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-04-13 09:58:28 +0000 |
commit | 277d104faa987533543b7071234beb4a21980b25 (patch) | |
tree | 04c9ea03ca8f0ed29cfabe62334ee8844ff1275a /src/plugins | |
parent | 740f16ac602b43ee61d6d1a22ad366dbf1d72e9a (diff) | |
download | qtmultimedia-277d104faa987533543b7071234beb4a21980b25.tar.gz |
[DirectShow] Fix potential memory access violation
Change-Id: I5da495d255e6fdd3a70c1ed486afb61f157c923e
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/directshow/player/directshowiosource.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/directshow/player/directshowiosource.cpp b/src/plugins/directshow/player/directshowiosource.cpp index 3a4e1075c..424120fd8 100644 --- a/src/plugins/directshow/player/directshowiosource.cpp +++ b/src/plugins/directshow/player/directshowiosource.cpp @@ -99,6 +99,9 @@ void DirectShowIOSource::setDevice(QIODevice *device) void DirectShowIOSource::setAllocator(IMemAllocator *allocator) { + if (m_allocator == allocator) + return; + if (m_allocator) m_allocator->Release(); |