- April 7, 2007
- 15
- 4
- Home Country
- Hungary
Hi guys,
According to MSDN, if one queries for FilterInfo/PinInfo interfaces, the returning pGraph/pFilter should be released when the interface is no longer needed.
I found numerous occasions in DirectshowUtil when this has not been done. So i did. Hope it helps.
Files:
DirectshowUtil.cs, DsUtils.cs of DirectShowLib.dll. (I added a FreeFilterInfo function here, just like the existing FreePinInfo.)
Submitted the fix: Here
cheers,
Peter
According to MSDN, if one queries for FilterInfo/PinInfo interfaces, the returning pGraph/pFilter should be released when the interface is no longer needed.
I found numerous occasions in DirectshowUtil when this has not been done. So i did. Hope it helps.
Files:
DirectshowUtil.cs, DsUtils.cs of DirectShowLib.dll. (I added a FreeFilterInfo function here, just like the existing FreePinInfo.)
Submitted the fix: Here
cheers,
Peter