Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine2004-12-21 18:17:11 +0000
committerVeronika Irvine2004-12-21 18:17:11 +0000
commit8cfffe7a73723fb6adf7d6ac64da8609b6e8f40a (patch)
tree95ce230dbaf9c13a5f6952e1ee6e6592dbe2f02a
parentdb6dea208e3373d0daab50aee333dd63e187b258 (diff)
downloadeclipse.platform.swt-8cfffe7a73723fb6adf7d6ac64da8609b6e8f40a.tar.gz
eclipse.platform.swt-8cfffe7a73723fb6adf7d6ac64da8609b6e8f40a.tar.xz
eclipse.platform.swt-8cfffe7a73723fb6adf7d6ac64da8609b6e8f40a.zip
bug 78854 Memory leakv3063c
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ClipboardProxy.java1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java1
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;
}

Back to the top