summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2009-10-06 13:57:49 +0000
committerFelipe Heidrich <fheidric>2009-10-06 13:57:49 +0000
commite5e5e84ba2f4928d3aca0d741233a824286d2f42 (patch)
tree0a20a7dfde294482881cb23e790d14679030b03b
parentbe826b9240fb6b63001780ecdc5ffaedc475624b (diff)
downloadeclipse.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-xbundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java4
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();
}