summaryrefslogtreecommitdiff
path: root/libavdevice/dshow_pin.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice/dshow_pin.c')
-rw-r--r--libavdevice/dshow_pin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/dshow_pin.c b/libavdevice/dshow_pin.c
index f31ecc6c99..5e14108092 100644
--- a/libavdevice/dshow_pin.c
+++ b/libavdevice/dshow_pin.c
@@ -73,6 +73,7 @@ libAVPin_Disconnect(libAVPin *this)
return VFW_E_NOT_STOPPED;
if (!this->connectedto)
return S_FALSE;
+ IPin_Release(this->connectedto);
this->connectedto = NULL;
return S_OK;