Marcus Meissner : qcap: Release filter only if allocated.
Alexandre Julliard
julliard at winehq.org
Wed Jun 5 16:12:40 CDT 2019
Module: wine
Branch: master
Commit: e4331ce6e5578f718fa0f4991c65188f314928c2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e4331ce6e5578f718fa0f4991c65188f314928c2
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Wed Jun 5 09:19:07 2019 +0200
qcap: Release filter only if allocated.
Fixes test crash when built without v4l2.
Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/qcap/tests/videocapture.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/qcap/tests/videocapture.c b/dlls/qcap/tests/videocapture.c
index b80b0f2..062138e 100644
--- a/dlls/qcap/tests/videocapture.c
+++ b/dlls/qcap/tests/videocapture.c
@@ -118,12 +118,12 @@ START_TEST(videocapture)
{
test_capture(filter);
IBaseFilter_Release(filter);
+ ref = IBaseFilter_Release(filter);
+ ok(!ref, "Got outstanding refcount %d.\n", ref);
}
else
skip("Failed to open capture device, hr=%#x.\n", hr);
- ref = IBaseFilter_Release(filter);
- ok(!ref, "Got outstanding refcount %d.\n", ref);
IMoniker_Release(moniker);
}
More information about the wine-cvs
mailing list