=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: mshtml: Only release the interface if it exists.

Alexandre Julliard julliard at winehq.org
Sat Feb 11 10:28:40 CST 2012


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Fri Feb 10 19:40:59 2012 +0100

mshtml: Only release the interface if it exists.

---

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

diff --git a/dlls/mshtml/persist.c b/dlls/mshtml/persist.c
index f131062..2e69902 100644
--- a/dlls/mshtml/persist.c
+++ b/dlls/mshtml/persist.c
@@ -268,7 +268,7 @@ static void set_downloading_proc(task_t *_task)
         IDropTarget *drop_target = NULL;
 
         hres = IDocHostUIHandler_GetDropTarget(doc->hostui, NULL /* FIXME */, &drop_target);
-        if(SUCCEEDED(hres)) {
+        if(SUCCEEDED(hres) && drop_target) {
             FIXME("Use IDropTarget\n");
             IDropTarget_Release(drop_target);
         }




More information about the wine-cvs mailing list