Fixed a memory leak

When editors are closed the glancePanel does not get GC'd. Over time
this will consume hundreds of MB.

Fixes #30