decklinksink: Fix memory leak
This commit is contained in:
parent
be8aa2973e
commit
85471f5ffa
@ -527,6 +527,11 @@ gst_decklink_sink_stop (GstDecklinkSink * decklinksink)
|
|||||||
decklinksink->output->DisableAudioOutput ();
|
decklinksink->output->DisableAudioOutput ();
|
||||||
decklinksink->output->DisableVideoOutput ();
|
decklinksink->output->DisableVideoOutput ();
|
||||||
|
|
||||||
|
decklinksink->output->Release ();
|
||||||
|
decklinksink->output = NULL;
|
||||||
|
decklinksink->decklink->Release ();
|
||||||
|
decklinksink->decklink = NULL;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user