Huw Davies : mshtml: Don't release the factory if we failed to get it.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jun 5 05:48:13 CDT 2007


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Jun  4 16:32:40 2007 +0100

mshtml: Don't release the factory if we failed to get it.

---

 dlls/mshtml/nsio.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index 601a300..75add6f 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -2189,7 +2189,6 @@ void init_nsio(nsIComponentManager *component_manager, nsIComponentRegistrar *re
                                                &IID_nsIFactory, (void**)&old_factory);
     if(NS_FAILED(nsres)) {
         ERR("Could not get factory: %08x\n", nsres);
-        nsIFactory_Release(old_factory);
         return;
     }
 




More information about the wine-cvs mailing list