Commit 04240e6a authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

winegstreamer: Destroy BaseFilter after GST child class.

parent 5cbc081a
...@@ -1099,6 +1099,7 @@ static void GST_Destroy(GSTImpl *This) { ...@@ -1099,6 +1099,7 @@ static void GST_Destroy(GSTImpl *This) {
gst_bus_set_sync_handler(This->bus, NULL, NULL); gst_bus_set_sync_handler(This->bus, NULL, NULL);
gst_object_unref(This->bus); gst_object_unref(This->bus);
} }
BaseFilter_Destroy(&This->filter);
CoTaskMemFree(This); CoTaskMemFree(This);
} }
...@@ -1131,7 +1132,7 @@ static HRESULT WINAPI GST_QueryInterface(IBaseFilter *iface, REFIID riid, LPVOID ...@@ -1131,7 +1132,7 @@ static HRESULT WINAPI GST_QueryInterface(IBaseFilter *iface, REFIID riid, LPVOID
static ULONG WINAPI GST_Release(IBaseFilter *iface) { static ULONG WINAPI GST_Release(IBaseFilter *iface) {
GSTImpl *This = (GSTImpl *)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); TRACE("(%p)->() Release from %d\n", This, refCount + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment