Qt seems to do its own attempt at tracking reference cycles, which got confused by having the grandchild of the widget maintaining a reference to it, and was causing segfaults at garbage collection time.
Additionally, windows need a reference maintained to them or else garbage collection will delete them, apparently. You'd think Qt itself would maintain that reference. But Qt is weird.
Qt seems to do its own attempt at tracking reference cycles, which got confused by having the grandchild of the widget maintaining a reference to it, and was causing segfaults at garbage collection time.
Additionally, windows need a reference maintained to them or else garbage collection will delete them, apparently. You'd think Qt itself would maintain that reference. But Qt is weird.
Fixes #99