diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2011-09-09 00:16:06 -0300 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-09-16 11:16:05 +0200 |
commit | dd41036a4c39252115b2f22b50d4681fb872369a (patch) | |
tree | 5a2a9c601e2ef26682e4ebc78a048fb273a44b6f /libavdevice/dshow_enumpins.c | |
parent | 0b951d103dbf105c025d382b51014a91dffb5f4c (diff) | |
download | ffmpeg-streaming-dd41036a4c39252115b2f22b50d4681fb872369a.zip ffmpeg-streaming-dd41036a4c39252115b2f22b50d4681fb872369a.tar.gz |
dshow: cleanup internal references on capture interface
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavdevice/dshow_enumpins.c')
-rw-r--r-- | libavdevice/dshow_enumpins.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavdevice/dshow_enumpins.c b/libavdevice/dshow_enumpins.c index 97890fb..02e967a 100644 --- a/libavdevice/dshow_enumpins.c +++ b/libavdevice/dshow_enumpins.c @@ -94,6 +94,12 @@ libAVEnumPins_Setup(libAVEnumPins *this, libAVPin *pin, libAVFilter *filter) return 1; } +static int +libAVEnumPins_Cleanup(libAVEnumPins *this) +{ + libAVFilter_Release(this->filter); + return 1; +} DECLARE_CREATE(libAVEnumPins, libAVEnumPins_Setup(this, pin, filter), libAVPin *pin, libAVFilter *filter) -DECLARE_DESTROY(libAVEnumPins, nothing) +DECLARE_DESTROY(libAVEnumPins, libAVEnumPins_Cleanup) |