summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java
diff options
context:
space:
mode:
authorBogdan Gheorghe <gheorghe@ca.ibm.com>2012-01-18 14:38:30 -0500
committerBogdan Gheorghe <gheorghe@ca.ibm.com>2012-01-18 14:38:30 -0500
commit7a90781a0b4efe2d1023e9b9e3985d7144df555d (patch)
tree365704170b742df3d564d27be5c13bdc425531ae /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java
parent775f7cfbc59632723c3d9a6faa1c78275b5107ae (diff)
parent769e2f86b4a658a863e62444f6c5f651ce456752 (diff)
downloadeclipse.platform.swt-7a90781a0b4efe2d1023e9b9e3985d7144df555d.tar.gz
eclipse.platform.swt-7a90781a0b4efe2d1023e9b9e3985d7144df555d.tar.xz
eclipse.platform.swt-7a90781a0b4efe2d1023e9b9e3985d7144df555d.zip
Merge master into Bug354978
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java
index d5bd29b79c..5eeddf3ad0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TableDragSourceEffect.java
@@ -101,7 +101,8 @@ public class TableDragSourceEffect extends DragSourceEffect {
if (count == 1) {
int /*long*/ path = OS.g_list_nth_data (list, 0);
int /*long*/ pixmap = OS.gtk_tree_view_create_row_drag_icon(handle, path);
- dragSourceImage = Image.gtk_new(display, SWT.ICON, pixmap, 0);
+ dragSourceImage = Image.gtk_new(display, SWT.ICON, pixmap, 0);
+ OS.gtk_tree_path_free (path);
} else {
int width = 0, height = 0;
int[] w = new int[1], h = new int[1];
@@ -117,6 +118,7 @@ public class TableDragSourceEffect extends DragSourceEffect {
height = rect.y + h[0] - yy[0];
yy[i] = rect.y;
hh[i] = h[0];
+ OS.gtk_tree_path_free (path);
}
int /*long*/ source = OS.gdk_pixmap_new(OS.GDK_ROOT_PARENT(), width, height, -1);
int /*long*/ gcSource = OS.gdk_gc_new(source);