Commit 0bf6df68 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

msctf: Fixed ref counts in tests.

parent bc645ca7
...@@ -567,9 +567,9 @@ ITfContext *pic) ...@@ -567,9 +567,9 @@ ITfContext *pic)
hr = ITfContext_GetDocumentMgr(pic,&docmgr); hr = ITfContext_GetDocumentMgr(pic,&docmgr);
ok(SUCCEEDED(hr),"GetDocumentMgr failed\n"); ok(SUCCEEDED(hr),"GetDocumentMgr failed\n");
test = (ITfContext*)0xdeadbeef; test = (ITfContext*)0xdeadbeef;
ITfDocumentMgr_Release(docmgr);
hr = ITfDocumentMgr_GetTop(docmgr,&test); hr = ITfDocumentMgr_GetTop(docmgr,&test);
ok(SUCCEEDED(hr),"GetTop failed\n"); ok(SUCCEEDED(hr),"GetTop failed\n");
ITfDocumentMgr_Release(docmgr);
ok(test == pic, "Wrong context is on top\n"); ok(test == pic, "Wrong context is on top\n");
if (test) if (test)
ITfContext_Release(test); ITfContext_Release(test);
...@@ -2345,6 +2345,9 @@ START_TEST(inputprocessor) ...@@ -2345,6 +2345,9 @@ START_TEST(inputprocessor)
test_UnregisterCategory(); test_UnregisterCategory();
test_Unregister(); test_Unregister();
test_profile_mgr(); test_profile_mgr();
ITextStoreACPSink_Release(ACPSink);
ITfDocumentMgr_Release(g_dm);
} }
else else
skip("Unable to create InputProcessor\n"); skip("Unable to create InputProcessor\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment