From 24fde087121efbce353dd4aacac22318a98eaa83 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 19 Aug 2024 21:40:52 +0300 Subject: [PATCH] Free Variant variable after usage in DShow back-end --- modules/videoio/src/cap_dshow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/videoio/src/cap_dshow.cpp b/modules/videoio/src/cap_dshow.cpp index c1205d9810..72754e1759 100644 --- a/modules/videoio/src/cap_dshow.cpp +++ b/modules/videoio/src/cap_dshow.cpp @@ -1398,6 +1398,8 @@ int videoInput::listDevices(bool silent){ if(!silent) DebugPrintOut("SETUP: %i) %s\n",deviceCounter, deviceNames[deviceCounter]); } + VariantClear(&varName); + pPropBag->Release(); pPropBag = NULL;