Merge pull request #26045 from asmorkalov:as/variant-free

Free Variant variable after usage in DShow back-end
pull/26051/head
Alexander Smorkalov 5 months ago committed by GitHub
commit a087a9c47a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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;

Loading…
Cancel
Save