swiz teardown does not remove SwizEvent.CREATED listener

Description

When teardown is called on a swiz instance (either through SwizManager or Swiz.tearDown), the swiz instance is pinned in memory because an event listener is not removed. If a new swiz instance is created after, the new swiz instance will use the torn down one as the parent.

Swiz.as line 414: dispatcher.addEventListener( SwizEvent.CREATED, handleSwizCreatedEvent );

A possible solution is to add to the teardown method:
dispatcher.removeEventListener( SwizEvent.CREATED, handleSwizCreatedEvent );

Environment

Win 7, Flex 4.5.1 SDK

Status

Assignee

ChrisC

Reporter

Jeffrey Barrus

Labels

None

Affects versions

Priority

Minor
Configure