Fix the memory leak by WeakHashMap.

fix: 5601885

Also simplify the code.

Change-Id: I97cdf00d84fa093ad7032e85ec7c31c3365e2447
1 file changed
tree: 3bf990531c04d7143c204f436f036fd3f13c9138
  1. gallerycommon/
  2. src/
  3. src_pd/
  4. tests/