cgeo/c-geo-opensource — Issue #707: Bad memory usage
Author: samueltardieu
Created: 2011-10-23 17:53:06+00:00
State: open
Labels: bug, low

`cgeoapplication.searches` is an unsynchronized hash map which is never cleared and is accessed concurrently. It grows every time you do a search, and will grow rapidly if you use the live map while driving.

The best way to fix that would be to totally remove this hash map and pass the `cgSearch` objects around as they are used so that they can be garbage collected when they are no longer used.