shell32: Release site pointer.

This commit is contained in:
Alistair Leslie-Hughes 2011-11-01 14:29:28 +11:00 committed by Alexandre Julliard
parent 1ce7b7a54c
commit be1a6d8323
1 changed files with 4 additions and 0 deletions

View File

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