diff options
author | Duong Nguyen | 2008-01-10 21:49:37 +0000 |
---|---|---|
committer | Duong Nguyen | 2008-01-10 21:49:37 +0000 |
commit | 8ad26ac5676bca933a4a0ebf0ad1c144087b1a79 (patch) | |
tree | 3c0b6360cdf655d2ac17a222622df962b9ce292a /bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt | |
parent | d1ee4df439ee9492a47f2c233aada962f5800629 (diff) | |
download | eclipse.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-x | bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleAutomation.java | 8 |
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(); } } /** |