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}
This commit is contained in:
Sergey Silkin
2021-11-05 16:44:54 +01:00
committed by WebRTC LUCI CQ
parent 9ebe6d7c88
commit 4de99443dd

View File

@ -389,6 +389,9 @@ int32_t DeviceInfoDS::CreateCapabilityMap(const char* deviceUniqueIdUTF8)
RTC_LOG(LS_INFO) << "Device support FORMAT_VideoInfo2";
supportFORMAT_VideoInfo = true;
}
FreeMediaType(pmt);
pmt = NULL;
}
}
if (supportFORMAT_VideoInfo2) {