[PATCH] msctf: also free the sink in the non-source branch (Coverity)
Marcus Meissner
meissner at suse.de
Mon Sep 3 12:07:55 CDT 2012
Hi,
can be moved out. CID 718728
Ciao, Marcus
---
dlls/msctf/tests/inputprocessor.c | 3 +--
1 Datei geändert, 1 Zeile hinzugefügt(+), 2 Zeilen entfernt(-)
diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c
index a732730..027795d 100644
--- a/dlls/msctf/tests/inputprocessor.c
+++ b/dlls/msctf/tests/inputprocessor.c
@@ -1901,10 +1901,9 @@ static void test_TStoApplicationText(void)
{
hr = ITfSource_UnadviseSink(source, editSinkCookie);
ok(SUCCEEDED(hr),"Failed to unadvise Sink\n");
- ITfTextEditSink_Release(sink);
ITfSource_Release(source);
}
-
+ ITfTextEditSink_Release(sink);
ITfContext_Release(cxt);
ITfDocumentMgr_Release(dm);
ITfEditSession_Release(es);
--
1.7.10.4
More information about the wine-patches
mailing list