Mike Hearn mike@theoretic.com writes:
This is a slightly modified version of the original patch which releases the typelib reference on every ITypeInfo::Release(), not just when being destroyed.
This is still not right, there are many other places that increment the ITypeInfo refcount that would need to be fixed too. And if you increment the typelib refcount everywhere it will create a refcount loop and nothing will ever get freed. This needs more thought...