diff options
author | Felipe Heidrich | 2011-12-05 22:30:21 +0000 |
---|---|---|
committer | Felipe Heidrich | 2011-12-05 22:30:21 +0000 |
commit | 399668ec62007974ac5ae7cf065fd3ab7640c5d3 (patch) | |
tree | 4ea2c715c783a0f51e66fca6ceb240cc250448df /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java | |
parent | e0e004ceb02d4870eb82258243938757bd2367dc (diff) | |
download | eclipse.platform.swt-399668ec62007974ac5ae7cf065fd3ab7640c5d3.tar.gz eclipse.platform.swt-399668ec62007974ac5ae7cf065fd3ab7640c5d3.tar.xz eclipse.platform.swt-399668ec62007974ac5ae7cf065fd3ab7640c5d3.zip |
Revert "364593 - Memory leak in Table when changing cell background colors"
This reverts commit e0e004ceb02d4870eb82258243938757bd2367dc.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java index 7119af4343..3307d505eb 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableItem.java @@ -132,7 +132,6 @@ Color _getBackground () { if (ptr [0] == 0) return parent.getBackground (); GdkColor gdkColor = new GdkColor (); OS.memmove (gdkColor, ptr [0], GdkColor.sizeof); - OS.gdk_color_free (ptr [0]); return Color.gtk_new (display, gdkColor); } @@ -145,7 +144,6 @@ Color _getBackground (int index) { if (ptr [0] == 0) return _getBackground (); GdkColor gdkColor = new GdkColor (); OS.memmove (gdkColor, ptr [0], GdkColor.sizeof); - OS.gdk_color_free (ptr [0]); return Color.gtk_new (display, gdkColor); } @@ -161,7 +159,6 @@ Color _getForeground () { if (ptr [0] == 0) return parent.getForeground (); GdkColor gdkColor = new GdkColor (); OS.memmove (gdkColor, ptr [0], GdkColor.sizeof); - OS.gdk_color_free (ptr [0]); return Color.gtk_new (display, gdkColor); } @@ -174,7 +171,6 @@ Color _getForeground (int index) { if (ptr [0] == 0) return _getForeground (); GdkColor gdkColor = new GdkColor (); OS.memmove (gdkColor, ptr [0], GdkColor.sizeof); - OS.gdk_color_free (ptr [0]); return Color.gtk_new (display, gdkColor); } @@ -187,7 +183,6 @@ Image _getImage (int index) { if (ptr [0] == 0) return null; ImageList imageList = parent.imageList; int imageIndex = imageList.indexOf (ptr [0]); - OS.g_object_unref (ptr [0]); if (imageIndex == -1) return null; return imageList.get (imageIndex); } |