/// <summary> /// Free the nested interfaces within a PinInfo struct. /// </summary> public static void FreePinInfo(PinInfo pinInfo) { if (pinInfo.filter != null) { Marshal.ReleaseComObject(pinInfo.filter); pinInfo.filter = null; } }