app-inventor-gallery/aig — Issue #52: possible memory leak in Module class
Author: derrell
Created: 2012-02-16 20:15:43+00:00
State: open

It looks like entries are added to the _list member, but never removed, e.g., when ephemeral pages are removed.

Consider replacing getList() with getAndFreeList() since the items on the list are needed only once (I think) during main.buildGui().

Further, consider using the normal list mechanism in Module in place of the manual map, when modules are added later. The two places to change are in main.Gui where management modules are added, and in appinfo.AppInfo, where ephemeral app pages are added.