Project: SWT
Bug 21937 COMObject leakage on OleControlSite
Reported: 2002-07-26 05:41:21 | Status: resolved fixed

Both constructors of OleControlSite and OleClientSite calls the same function : "createCOMInterfaces()". If you create new instance of OleControlSite, its field COMObjects (such as iDispatch, iUnknown) are initialized two time but the first ones are never disposed. COMObject::ObjectMap manages all instances of COMObject, so this problem is java-side memory leakage as well as OLE resource leakage. Any referencer of OleControlSite's instances are not garbage collected, so this is not tiny problem.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java