http://bugs.winehq.org/show_bug.cgi?id=27168
--- Comment #32 from Juan Lang juan_lang@yahoo.com 2011-09-22 07:26:17 CDT --- (In reply to comment #31)
Here's the updated patch. Now it properly tracks ref counters on store and uses it to clean up everything. No hacking.
I think you'll want to add test cases in the form of Wine regression tests.
Unfortunately it doesn't properly track ref counters on collections and as result it frees "world" collection too early and fails to build a chain. Will focus on collections now.
Like I mentioned, collections will be the hard part.