Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuong Nguyen2008-01-10 21:49:37 +0000
committerDuong Nguyen2008-01-10 21:49:37 +0000
commit8ad26ac5676bca933a4a0ebf0ad1c144087b1a79 (patch)
tree3c0b6360cdf655d2ac17a222622df962b9ce292a /bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt
parentd1ee4df439ee9492a47f2c233aada962f5800629 (diff)
downloadeclipse.platform.swt-8ad26ac5676bca933a4a0ebf0ad1c144087b1a79.tar.gz
eclipse.platform.swt-8ad26ac5676bca933a4a0ebf0ad1c144087b1a79.tar.xz
eclipse.platform.swt-8ad26ac5676bca933a4a0ebf0ad1c144087b1a79.zip
Bug120192 - org.eclipse.swt.ole.win32.OleAutomation has a reference leak
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleAutomation.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleAutomation.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleAutomation.java
index 5d9fdae8d5..6bbfa4b18b 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleAutomation.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleAutomation.java
@@ -90,10 +90,12 @@ OleAutomation(IDispatch idispatch) {
objIDispatch.AddRef();
int /*long*/[] ppv = new int /*long*/[1];
+ /* GetTypeInfo([in] iTInfo, [in] lcid, [out] ppTInfo)
+ * AddRef has already been called on ppTInfo by the callee and must be released by the caller.
+ */
int result = objIDispatch.GetTypeInfo(0, COM.LOCALE_USER_DEFAULT, ppv);
if (result == OLE.S_OK) {
objITypeInfo = new ITypeInfo(ppv[0]);
- objITypeInfo.AddRef();
}
}
/**
@@ -111,10 +113,12 @@ OleAutomation(IDispatch idispatch) {
objIDispatch = clientSite.getAutomationObject();
int /*long*/[] ppv = new int /*long*/[1];
+ /* GetTypeInfo([in] iTInfo, [in] lcid, [out] ppTInfo)
+ * AddRef has already been called on ppTInfo by the callee and must be released by the caller.
+ */
int result = objIDispatch.GetTypeInfo(0, COM.LOCALE_USER_DEFAULT, ppv);
if (result == OLE.S_OK) {
objITypeInfo = new ITypeInfo(ppv[0]);
- objITypeInfo.AddRef();
}
}
/**

Back to the top