winegstreamer: Fix reference leak.

This commit is contained in:
Maarten Lankhorst 2010-11-17 13:25:51 +01:00 committed by Alexandre Julliard
parent 4e94fd5567
commit f3481b0218
1 changed files with 1 additions and 0 deletions

View File

@ -1556,6 +1556,7 @@ static HRESULT GST_RemoveOutputPins(GSTImpl *This) {
gst_element_set_bus(This->gstfilter, NULL);
gst_element_set_state(This->gstfilter, GST_STATE_NULL);
gst_pad_unlink(This->my_src, This->their_sink);
gst_object_unref(This->my_src);
This->my_src = This->their_sink = NULL;
for (i = 0; i < This->cStreams; i++) {