Homec4science

Fix a memory leak

Authored by Curtis Rueden <ctrueden@wisc.edu> on May 3 2017, 19:44.

Description

Fix a memory leak

For some reason, Coloc_2 having an inner class WindowAdapter instance
resulted in some object reference hierarchy which prevented garbage
collection of the Coloc_2 (as reported by a JVisualVM heap dump).

Explicitly unregistering the WindowAdapter upon window closing fixes the
issue, so that garbage collection purges all the Coloc-2-related objects

  • in particular, the SpearmanRankCorrelation double array fields, which

are essentially complete copies of the images.

Details

Committed
Curtis Rueden <ctrueden@wisc.edu>May 3 2017, 20:21
Pushed
oburriMar 8 2018, 18:06
Parents
R6269:acfe92317c3a: Coloc_2: remove old main method
Branches
Unknown
Tags
Unknown

Event Timeline

Curtis Rueden <ctrueden@wisc.edu> committed R6269:b7f84a775050: Fix a memory leak (authored by Curtis Rueden <ctrueden@wisc.edu>).May 3 2017, 20:21