]> git.mxchange.org Git - simgear.git/commit
Canvas: clear event listeners on destroy
authorThomas Geymayer <tomgey@gmail.com>
Mon, 3 Jun 2013 21:39:11 +0000 (23:39 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 3 Jun 2013 21:39:27 +0000 (23:39 +0200)
commit7fe16d99be2b38bb5999443a1b8edce021d2dc69
tree8fff7ba55f9f3354202f84903152d55de8679ad8
parentc3af88dfc1df0fb77489ebc4e87c94a092433828
Canvas: clear event listeners on destroy

Removing all event listeneres on destroying a canvas
prevents circular references due to Nasal event listeners
keeping a reference to the canvas in their closure.

Also fix event handling with direct children of the root
group and add some more helpers to the Canvas.
simgear/canvas/Canvas.cxx
simgear/canvas/Canvas.hxx
simgear/canvas/CanvasEventManager.cxx
simgear/canvas/CanvasEventVisitor.cxx
simgear/canvas/elements/CanvasElement.cxx
simgear/canvas/elements/CanvasElement.hxx
simgear/canvas/elements/CanvasGroup.cxx
simgear/canvas/elements/CanvasGroup.hxx