summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2020-02-05 16:52:56 +0100
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2020-02-21 13:47:46 +0000
commit12460a14bde44d1ff7bedd75bc87c7f22d096588 (patch)
tree11ef81942672104982b3f3cd8d2573496ea8b94e /src/plugins
parent19b111fa2f872e8c356ca130ce5a03ae52375934 (diff)
WMF: Fix memory leak in MFPlayerSession::getStreamType
Receives a pointer to the IMFMediaTypeHandler interface. The caller must release the interface. Fixes: QTBUG-80037 Change-Id: Id0222c9f8ee0f88db8cd53c9492dce053d0bfb35 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/wmf/player/mfplayersession.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/wmf/player/mfplayersession.cpp b/src/plugins/wmf/player/mfplayersession.cpp
index 10ba25998..24bfda833 100644
--- a/src/plugins/wmf/player/mfplayersession.cpp
+++ b/src/plugins/wmf/player/mfplayersession.cpp
@@ -288,6 +288,9 @@ MFPlayerSession::MediaType MFPlayerSession::getStreamType(IMFStreamDescriptor *s
}
}
+ if (typeHandler)
+ typeHandler->Release();
+
return Unknown;
}