>From 4cbfc53d06735d26e3e5cd68f9d076f339e892f1 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Tue, 1 Nov 2011 14:29:28 +1100
Subject: [PATCH] Release old pointer in SetSite
To: wine-patches <wine-patches@winehq.org>

---
 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;
-- 
1.7.5.4

