diff options
author | Felipe Heidrich <fheidric> | 2009-07-15 16:25:05 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2009-07-15 16:25:05 +0000 |
commit | d5edfcbf5131bddddb9bdcd049ffee1dd46bb279 (patch) | |
tree | 8e63655342b4391f2d8c3e8307354a731cb8637d | |
parent | 6df9cccf1fa28547e942c8a8c62bd40a8d7996cd (diff) | |
download | eclipse.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-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(); } |