oleaut32: Fix circular reference counting in typelibs/typeinfos.
commit8a5886efadae4b9d76c45b5923c5114c9f2b042e
authorRob Shearman <robertshearman@gmail.com>
Thu, 19 Nov 2009 11:54:22 +0000 (19 11:54 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 19 Nov 2009 13:24:05 +0000 (19 14:24 +0100)
tree0dd39f4f5854462c73334b6fb1af6b75b00dc380
parent456ad1b1cf88641fe4ac7face4d48b226533dbe5
oleaut32: Fix circular reference counting in typelibs/typeinfos.

Do not rely on the reference count of ITypeInfo's to go to zero to
delete them. Instead only rely on the parent typelib's reference
count, but update the parent typelib's reference count based on
whether each typeinfo has a valid reference.
dlls/oleaut32/typelib.c