Rob Shearman : ole32: Release the data object and free the cached enum data upon OleUninitialize .

Alexandre Julliard julliard at winehq.org
Wed Dec 30 10:18:14 CST 2009


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

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Tue Dec 29 18:59:37 2009 +0000

ole32: Release the data object and free the cached enum data upon OleUninitialize.

---

 dlls/ole32/clipboard.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c
index 7f19d16..51e750a 100644
--- a/dlls/ole32/clipboard.c
+++ b/dlls/ole32/clipboard.c
@@ -1608,6 +1608,8 @@ void OLEClipbrd_UnInitialize(void)
         }
 
         IStream_Release(clipbrd->marshal_data);
+        if (clipbrd->src_data) IDataObject_Release(clipbrd->src_data);
+        HeapFree(GetProcessHeap(), 0, clipbrd->cached_enum);
         HeapFree(GetProcessHeap(), 0, clipbrd);
         theOleClipboard = NULL;
     }




More information about the wine-cvs mailing list