summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2009-07-15 16:25:05 +0000
committerFelipe Heidrich <fheidric>2009-07-15 16:25:05 +0000
commitd5edfcbf5131bddddb9bdcd049ffee1dd46bb279 (patch)
tree8e63655342b4391f2d8c3e8307354a731cb8637d
parent6df9cccf1fa28547e942c8a8c62bd40a8d7996cd (diff)
downloadeclipse.platform.swt-d5edfcbf5131bddddb9bdcd049ffee1dd46bb279.tar.gz
eclipse.platform.swt-d5edfcbf5131bddddb9bdcd049ffee1dd46bb279.tar.xz
eclipse.platform.swt-d5edfcbf5131bddddb9bdcd049ffee1dd46bb279.zip
Bug 278625: [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();
}