Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java6
6 files changed, 12 insertions, 24 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java
index 951c82345b..630ee96ca7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Menu.java
@@ -684,10 +684,8 @@ void releaseWidget () {
parent = null;
cascade = null;
imItem = imSeparator = imHandle = 0;
- if (imageList != null) {
- imageList.dispose ();
- imageList = null;
- }
+ if (imageList != null) imageList.dispose ();
+ imageList = null;
}
/**
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
index 72a6eb234c..d80eae03fc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
@@ -525,10 +525,8 @@ void releaseWidget () {
}
items = null;
super.releaseWidget ();
- if (imageList != null) {
- imageList.dispose ();
- imageList = null;
- }
+ if (imageList != null) imageList.dispose ();
+ imageList = null;
}
void removeControl (Control control) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
index e397365b97..fe21c144e1 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java
@@ -1642,10 +1642,8 @@ void releaseWidget () {
modelHandle = 0;
if (checkRenderer != 0) OS.g_object_unref (checkRenderer);
checkRenderer = 0;
- if (imageList != null) {
- imageList.dispose ();
- imageList = null;
- }
+ if (imageList != null) imageList.dispose ();
+ imageList = null;
}
/**
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java
index 5d4e8dce8e..bd984a436b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java
@@ -389,10 +389,8 @@ void releaseWidget () {
}
items = null;
super.releaseWidget ();
- if (imageList != null) {
- imageList.dispose ();
- imageList = null;
- }
+ if (imageList != null) imageList.dispose ();
+ imageList = null;
}
void removeControl (Control control) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java
index f5e53deaec..571ea46db5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TrayItem.java
@@ -216,10 +216,8 @@ void releaseWidget () {
super.releaseWidget ();
if (tooltipsHandle != 0) OS.g_object_unref (tooltipsHandle);
imageHandle = tooltipsHandle = 0;
- if (imageList != null) {
- imageList.dispose ();
- imageList = null;
- }
+ if (imageList != null) imageList.dispose ();
+ imageList = null;
toolTipText = null;
if (handle != 0) OS.gtk_widget_destroy (handle);
handle = 0;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
index 9f873dd853..89f730a5f8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java
@@ -1493,10 +1493,8 @@ void releaseWidget () {
modelHandle = 0;
if (checkRenderer != 0) OS.g_object_unref (checkRenderer);
checkRenderer = 0;
- if (imageList != null) {
- imageList.dispose ();
- imageList = null;
- }
+ if (imageList != null) imageList.dispose ();
+ imageList = null;
}
/**

Back to the top