msctf: Fixed ref counts in tests.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2016-05-27 18:35:44 +02:00 committed by Alexandre Julliard
parent bc645ca71a
commit 0bf6df6866
1 changed files with 4 additions and 1 deletions

View File

@ -567,9 +567,9 @@ ITfContext *pic)
hr = ITfContext_GetDocumentMgr(pic,&docmgr);
ok(SUCCEEDED(hr),"GetDocumentMgr failed\n");
test = (ITfContext*)0xdeadbeef;
ITfDocumentMgr_Release(docmgr);
hr = ITfDocumentMgr_GetTop(docmgr,&test);
ok(SUCCEEDED(hr),"GetTop failed\n");
ITfDocumentMgr_Release(docmgr);
ok(test == pic, "Wrong context is on top\n");
if (test)
ITfContext_Release(test);
@ -2345,6 +2345,9 @@ START_TEST(inputprocessor)
test_UnregisterCategory();
test_Unregister();
test_profile_mgr();
ITextStoreACPSink_Release(ACPSink);
ITfDocumentMgr_Release(g_dm);
}
else
skip("Unable to create InputProcessor\n");