Nikolay Sivov : mshtml/tests: Fix interface release (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Jan 26 10:14:50 CST 2009


Module: wine
Branch: master
Commit: f4f5ee152d6869d2334cfdda1c4ff859eebdd317
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f4f5ee152d6869d2334cfdda1c4ff859eebdd317

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Sat Jan 24 17:25:11 2009 +0300

mshtml/tests: Fix interface release (Coverity).

---

 dlls/mshtml/tests/htmldoc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c
index c870989..e4ae144 100644
--- a/dlls/mshtml/tests/htmldoc.c
+++ b/dlls/mshtml/tests/htmldoc.c
@@ -4153,9 +4153,9 @@ static void test_HTMLDoc_ISupportErrorInfo(void)
     {
         hres = ISupportErrorInfo_InterfaceSupportsErrorInfo(sinfo, &IID_IErrorInfo);
         ok(hres == S_FALSE, "Expected S_OK, got %x\n", hres);
+        IUnknown_Release(sinfo);
     }
 
-    IUnknown_Release(sinfo);
     ref = IUnknown_Release(unk);
     ok(ref == 0, "ref=%d, expected 0\n", ref);
 }




More information about the wine-cvs mailing list