| commit | 4de99443dd15bfdae4b98a93c3527ee38fec01ee | [log] [tgz] |
|---|---|---|
| author | Sergey Silkin <ssilkin@webrtc.org> | Fri Nov 05 15:44:54 2021 |
| committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 17 15:06:31 2021 |
| tree | e6f04bc176bc89a6cff1ce899b99c4dc17d78a87 | |
| parent | 9ebe6d7c889716a1ff68e4075ad4384a34ef027b [diff] |
Delete memory allocated by GetStreamCaps Bug: webrtc:13260 Change-Id: I18c23e2c3aad7c711c33c8cc381d46275473b4a0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/237344 Reviewed-by: Per Kjellander <perkj@webrtc.org> Commit-Queue: Sergey Silkin <ssilkin@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35369}
diff --git a/modules/video_capture/windows/device_info_ds.cc b/modules/video_capture/windows/device_info_ds.cc index 455501f..fb8d551 100644 --- a/modules/video_capture/windows/device_info_ds.cc +++ b/modules/video_capture/windows/device_info_ds.cc
@@ -389,6 +389,9 @@ RTC_LOG(LS_INFO) << "Device support FORMAT_VideoInfo2"; supportFORMAT_VideoInfo = true; } + + FreeMediaType(pmt); + pmt = NULL; } } if (supportFORMAT_VideoInfo2) {