[PATCH 1/4] strmbase: Remove a couple of redundant statements in Release() methods
Nikolay Sivov
nsivov at codeweavers.com
Fri Nov 25 03:10:44 CST 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/strmbase/pin.c | 4 +---
dlls/strmbase/transform.c | 5 +----
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/dlls/strmbase/pin.c b/dlls/strmbase/pin.c
index d61469c..c19f528 100644
--- a/dlls/strmbase/pin.c
+++ b/dlls/strmbase/pin.c
@@ -397,10 +397,8 @@ ULONG WINAPI BaseOutputPinImpl_Release(IPin * iface)
TRACE("(%p)->() Release from %d\n", iface, refCount + 1);
if (!refCount)
- {
BaseOutputPin_Destroy(This);
- return 0;
- }
+
return refCount;
}
diff --git a/dlls/strmbase/transform.c b/dlls/strmbase/transform.c
index 4ad9730..92eef16 100644
--- a/dlls/strmbase/transform.c
+++ b/dlls/strmbase/transform.c
@@ -344,11 +344,8 @@ ULONG WINAPI TransformFilterImpl_Release(IBaseFilter * iface)
IUnknown_Release(This->seekthru_unk);
BaseFilter_Destroy(&This->filter);
CoTaskMemFree(This);
-
- return 0;
}
- else
- return refCount;
+ return refCount;
}
/** IMediaFilter methods **/
--
2.10.2
More information about the wine-patches
mailing list