Maarten Lankhorst : winegstreamer: Fix reference leak.

Alexandre Julliard julliard at winehq.org
Wed Nov 17 10:38:06 CST 2010


Module: wine
Branch: master
Commit: f3481b0218a30fe49af245183fd89c7ebbefac40
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f3481b0218a30fe49af245183fd89c7ebbefac40

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Wed Nov 17 13:25:51 2010 +0100

winegstreamer: Fix reference leak.

---

 dlls/winegstreamer/gstdemux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 0af7014..a53355d 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -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++) {




More information about the wine-cvs mailing list