msctf: Also free the sink in the non-source branch (Coverity).

This commit is contained in:
Marcus Meissner 2012-09-03 19:07:55 +02:00 committed by Alexandre Julliard
parent 439605634e
commit 2288851c90
1 changed files with 1 additions and 2 deletions

View File

@ -1901,10 +1901,9 @@ static void test_TStoApplicationText(void)
{ {
hr = ITfSource_UnadviseSink(source, editSinkCookie); hr = ITfSource_UnadviseSink(source, editSinkCookie);
ok(SUCCEEDED(hr),"Failed to unadvise Sink\n"); ok(SUCCEEDED(hr),"Failed to unadvise Sink\n");
ITfTextEditSink_Release(sink);
ITfSource_Release(source); ITfSource_Release(source);
} }
ITfTextEditSink_Release(sink);
ITfContext_Release(cxt); ITfContext_Release(cxt);
ITfDocumentMgr_Release(dm); ITfDocumentMgr_Release(dm);
ITfEditSession_Release(es); ITfEditSession_Release(es);