There is a leak in the list of owned child windows for every window. Run the attached test and check output: test prints two counters, one for weak reference with null value, and another is for not-null value. It's clear that target objects (child windows) are properly destroyed, however the corresponding weak refereces are never removed from ownedWindowList.
|