diff options
author | Stephen McNamara <steve.mcnamara@ultra-sml.com> | 2009-12-08 17:55:13 -0800 |
---|---|---|
committer | Michael Smith <msmith@songbirdnest.com> | 2009-12-08 17:56:24 -0800 |
commit | 405872f69d0848b3f9e6a0fa112c831c52fca443 (patch) | |
tree | 6100b5876e2379c3bd2c0e5def3ffb6113c60b75 /sys | |
parent | c5847abf30fb3870263bedfcdf89939a84541b97 (diff) |
dshowvideosink: don't leak filter_media_event
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dshowvideosink/dshowvideosink.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dshowvideosink/dshowvideosink.cpp b/sys/dshowvideosink/dshowvideosink.cpp index ccdabbeac..773387212 100644 --- a/sys/dshowvideosink/dshowvideosink.cpp +++ b/sys/dshowvideosink/dshowvideosink.cpp @@ -1350,6 +1350,11 @@ gst_dshowvideosink_stop (GstBaseSink * bsink) sink->filter_graph = NULL; } + if (sink->filter_media_event) { + sink->filter_media_event->Release(); + sink->filter_media_event = NULL; + } + return TRUE; } |