Thomas Faber : winegstreamer: Destroy BaseFilter after GST child class.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 22 14:12:21 CDT 2014


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

Author: Thomas Faber <thomas.faber at reactos.org>
Date:   Sat Jul 19 10:40:28 2014 +0200

winegstreamer: Destroy BaseFilter after GST child class.

---

 dlls/winegstreamer/gstdemux.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 3694b54..4e5f04d 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -1099,6 +1099,7 @@ static void GST_Destroy(GSTImpl *This) {
         gst_bus_set_sync_handler(This->bus, NULL, NULL);
         gst_object_unref(This->bus);
     }
+    BaseFilter_Destroy(&This->filter);
     CoTaskMemFree(This);
 }
 
@@ -1131,7 +1132,7 @@ static HRESULT WINAPI GST_QueryInterface(IBaseFilter *iface, REFIID riid, LPVOID
 
 static ULONG WINAPI GST_Release(IBaseFilter *iface) {
     GSTImpl *This = (GSTImpl *)iface;
-    ULONG refCount = BaseFilterImpl_Release(iface);
+    ULONG refCount = InterlockedDecrement(&This->filter.refCount);
 
     TRACE("(%p)->() Release from %d\n", This, refCount + 1);
 




More information about the wine-cvs mailing list