Commit fa2c5092 authored by Jactry Zeng's avatar Jactry Zeng Committed by Alexandre Julliard

riched20/tests: Fix a SysAllocString leak.

parent 02af7440
......@@ -190,7 +190,7 @@ static void test_ITextDocument_Open(void)
int tomNumSingle = sizeof(tomConstantsSingle)/sizeof(tomConstantsSingle[0]);
int tomNumMulti = sizeof(tomConstantsMulti)/sizeof(tomConstantsMulti[0]);
int i;
VariantInit(&testfile);
V_VT(&testfile) = VT_BSTR;
V_BSTR(&testfile) = SysAllocString(filename);
......@@ -378,6 +378,8 @@ static void test_ITextDocument_Open(void)
todo_wine ok(result == 0, "ITextDocument_Open: Test UTF-16 set wrong text: Result: %s\n", wine_dbgstr_w(bufUnicode));
release_interfaces(&w, &reOle, &txtDoc, &txtSel);
DeleteFileW(filename);
VariantClear(&testfile);
}
START_TEST(richole)
......
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