Typelib refcounting (partial) fix

Malte Starostik malte at kde.org
Sat Oct 13 07:11:00 CDT 2001


This makes sure the ITypeLib held by ITypeInfo isn't destroyed before the type 
info is, as happened in reaktivate. There, the IProvideClassInfo interface of 
the loaded control would load the type lib, release it and then the returned 
ITypeInfo referenced this freed typelib.
However, now the type lib isn't freed at all, which seems to me to be caused 
by ITypeInfoImpl's reflist never being freed, and therefore the ITypeLibs 
referenced there are not released. I don't grok enough of this code to check 
where that should be done properly though :(
-- 
Malte Starostik
PGP: 1024D/D2F3C787 [C138 2121 FAF3 410A 1C2A  27CD 5431 7745 D2F3 C787]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typelib.diff
Type: text/x-diff
Size: 1536 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20011013/1514f2cc/typelib.bin


More information about the wine-patches mailing list