diff options
author | David Schleef <ds@schleef.org> | 2012-09-08 16:08:21 -0700 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-09-09 02:07:24 +0100 |
commit | 85471f5ffa3f5aeb0a0808d299d57339c07d4577 (patch) | |
tree | b665be143203da226fba7d26567eaa0e6c6520df /sys | |
parent | be8aa2973e9de02b83c09a58351923b83e590bf8 (diff) | |
download | gstreamer-plugins-bad-85471f5ffa3f5aeb0a0808d299d57339c07d4577.tar.gz |
decklinksink: Fix memory leak
Diffstat (limited to 'sys')
-rw-r--r-- | sys/decklink/gstdecklinksink.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/decklink/gstdecklinksink.cpp b/sys/decklink/gstdecklinksink.cpp index 023569fc1..7ce9ecc5e 100644 --- a/sys/decklink/gstdecklinksink.cpp +++ b/sys/decklink/gstdecklinksink.cpp @@ -527,6 +527,11 @@ gst_decklink_sink_stop (GstDecklinkSink * decklinksink) decklinksink->output->DisableAudioOutput (); decklinksink->output->DisableVideoOutput (); + decklinksink->output->Release (); + decklinksink->output = NULL; + decklinksink->decklink->Release (); + decklinksink->decklink = NULL; + return TRUE; } |