diff options
author | Felipe Heidrich <fheidric> | 2009-10-06 13:57:49 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2009-10-06 13:57:49 +0000 |
commit | e5e5e84ba2f4928d3aca0d741233a824286d2f42 (patch) | |
tree | 0a20a7dfde294482881cb23e790d14679030b03b | |
parent | be826b9240fb6b63001780ecdc5ffaedc475624b (diff) | |
download | eclipse.platform.swt-e5e5e84ba2f4928d3aca0d741233a824286d2f42.tar.gz eclipse.platform.swt-e5e5e84ba2f4928d3aca0d741233a824286d2f42.tar.xz eclipse.platform.swt-e5e5e84ba2f4928d3aca0d741233a824286d2f42.zip |
[DND] COM leak during drag and drop
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java index f8720f83fa..d8258bd77f 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java @@ -566,6 +566,10 @@ void onDispose () { COM.CoLockObjectExternal(iDropTarget.getAddress(), false, true); this.Release(); + if (iDataObject != null) { + iDataObject.Release(); + } + iDataObject = null; COM.CoFreeUnusedLibraries(); } |