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;