Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2015-05-12 14:00:05 +0000
committerNiraj Modi2015-05-12 14:04:48 +0000
commite84feaec9ce7b27fc38c8ff6438796d4fd8839e7 (patch)
treeb6238f488d90f93c67545bab7f5b45f029f72c26
parentb7024c2f7afd906110bb3c8838d1616f708ec4cf (diff)
downloadeclipse.platform.swt-e84feaec9ce7b27fc38c8ff6438796d4fd8839e7.tar.gz
eclipse.platform.swt-e84feaec9ce7b27fc38c8ff6438796d4fd8839e7.tar.xz
eclipse.platform.swt-e84feaec9ce7b27fc38c8ff6438796d4fd8839e7.zip
Bug 466202 - XULRunner 24 : memory leak when calling SWT BrowserFunction
Change-Id: Ic5a649f9f99d8396fbcedc2b924c80acfbfed7f5 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java
index a21dcdc7ee..b28288c6b5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2013 IBM Corporation and others.
+ * Copyright (c) 2008, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -117,6 +117,7 @@ static Object convertToJava (nsIVariant variant) {
rc = supports.QueryInterface (id, result);
if (rc != XPCOM.NS_OK) Mozilla.error (rc);
if (result[0] == 0) Mozilla.error (XPCOM.NS_NOINTERFACE);
+ supports.Release ();
nsIVariant currentVariant = new nsIVariant (result[0]);
result[0] = 0;

Back to the top