diff options
2 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ClipboardProxy.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ClipboardProxy.java index 8ce3ff0171..0e3a44c505 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ClipboardProxy.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ClipboardProxy.java @@ -108,6 +108,7 @@ private int /*long*/ getFunc( int /*long*/ clipboard, int /*long*/ selection_dat return 0; } OS.gtk_selection_data_set(selection_data, tdata.type, tdata.format, tdata.pValue, tdata.length); + OS.g_free(tdata.pValue); return 1; } boolean setData(Object[] data, Transfer[] dataTypes) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java index 8f2f4f003f..f683086580 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java @@ -352,6 +352,7 @@ void dragGetData(int /*long*/ widget, int /*long*/ context, int /*long*/ selecti transfer.javaToNative(event.data, transferData); if (transferData.result != 1) return; OS.gtk_selection_data_set(selection_data, transferData.type, transferData.format, transferData.pValue, transferData.length); + OS.g_free(transferData.pValue); return; } |