Alistair Leslie-Hughes : shell32: Release site pointer.

Alexandre Julliard julliard at winehq.org
Tue Nov 1 13:23:24 CDT 2011


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

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Tue Nov  1 14:29:28 2011 +1100

shell32: Release site pointer.

---

 dlls/shell32/shelllink.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c
index 7d97f97..bb246e3 100644
--- a/dlls/shell32/shelllink.c
+++ b/dlls/shell32/shelllink.c
@@ -2630,6 +2630,10 @@ ShellLink_SetSite( IObjectWithSite *iface, IUnknown *punk )
 
     if ( punk )
         IUnknown_AddRef( punk );
+
+    if( This->site )
+        IUnknown_Release( This->site );
+
     This->site = punk;
 
     return S_OK;




More information about the wine-cvs mailing list