Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2013-04-15 14:22:43 +0000
committerGrant Gayed2013-04-15 14:22:43 +0000
commitb6f0342507347597122897413369cab7e259fec2 (patch)
tree2a11dc529438af1290d4facaef018c4b01182e75
parent61aaa5d345230600c799f6ea9d7e339f868270d4 (diff)
downloadeclipse.platform.swt-b6f0342507347597122897413369cab7e259fec2.tar.gz
eclipse.platform.swt-b6f0342507347597122897413369cab7e259fec2.tar.xz
eclipse.platform.swt-b6f0342507347597122897413369cab7e259fec2.zip
fix snippet in response to fix for bug 405711
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet199.java2
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet305.java3
2 files changed, 0 insertions, 5 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet199.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet199.java
index 39d2c10c97..301b3740cf 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet199.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet199.java
@@ -73,11 +73,9 @@ public class Snippet199 {
OleListener listener = new OleListener() {
public void handleEvent (OleEvent e) {
System.out.println("selection has changed");
- // two arguments which must be released (row and column)
Variant[] args = e.arguments;
for (int i = 0; i < args.length; i++) {
System.out.println(args[i]);
- args [i].dispose();
}
}
};
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet305.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet305.java
index d90995af08..a02f2782c1 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet305.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet305.java
@@ -58,9 +58,6 @@ public class Snippet305 {
int column = pVarResult.getInt();
range.dispose();
System.out.println("row=" + row + " column=" + column);
- for (int i = 0; i < args.length; i++) {
- args[i].dispose();
- }
}
};
controlSite.addEventListener(application, IID_AppEvents, SheetSelectionChange, listener);

Back to the top