diff options
author | Grant Gayed <ggayed> | 2009-12-15 17:32:25 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2009-12-15 17:32:25 +0000 |
commit | 89e14c9470194d348eb7e11717c461cadb87fc47 (patch) | |
tree | 136af6a29657b99249511678e7e77d1832f63b8b /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop | |
parent | bc9ce4c19e095afd41a7f0bb329d358c89dcca3e (diff) | |
download | eclipse.platform.swt-89e14c9470194d348eb7e11717c461cadb87fc47.tar.gz eclipse.platform.swt-89e14c9470194d348eb7e11717c461cadb87fc47.tar.xz eclipse.platform.swt-89e14c9470194d348eb7e11717c461cadb87fc47.zip |
295185 - Refresh of PDF in SWT browser leads to jvm crash
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop')
4 files changed, 15 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/Clipboard.java index 10a3126cef..913d7d839e 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/Clipboard.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/Clipboard.java @@ -649,7 +649,9 @@ private int Release() { this.data = new Object[0]; this.transferAgents = new Transfer[0]; disposeCOMInterfaces(); - COM.CoFreeUnusedLibraries(); + if (COM.FreeUnusedLibraries) { + COM.CoFreeUnusedLibraries(); + } } return refCount; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java index a7f220de1f..4e83e954f1 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java @@ -655,7 +655,9 @@ private int Release() { refCount--; if (refCount == 0) { disposeCOMInterfaces(); - COM.CoFreeUnusedLibraries(); + if (COM.FreeUnusedLibraries) { + COM.CoFreeUnusedLibraries(); + } } return refCount; } 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 d8258bd77f..fe7785ec2e 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 @@ -571,7 +571,9 @@ void onDispose () { } iDataObject = null; - COM.CoFreeUnusedLibraries(); + if (COM.FreeUnusedLibraries) { + COM.CoFreeUnusedLibraries(); + } } int opToOs(int operation) { @@ -627,7 +629,9 @@ int Release() { if (refCount == 0) { disposeCOMInterfaces(); - COM.CoFreeUnusedLibraries(); + if (COM.FreeUnusedLibraries) { + COM.CoFreeUnusedLibraries(); + } } return refCount; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/OleEnumFORMATETC.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/OleEnumFORMATETC.java index c1c8c1fbd6..bfe4acb3c8 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/OleEnumFORMATETC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/OleEnumFORMATETC.java @@ -133,7 +133,9 @@ int Release() { if (refCount == 0) { disposeCOMInterfaces(); - COM.CoFreeUnusedLibraries(); + if (COM.FreeUnusedLibraries) { + COM.CoFreeUnusedLibraries(); + } } return refCount; |