HUGE memory leak somewhere

There seems to be a huge memory leak somewhere, at least on ST3 (haven't tried ST2). I seem to be able to reproduce it simply by opening the history and opening a few files a couple of times, and then simply opening and closing the history panel. You will notice it get slower each time and memory usage sharply increases.
@rahul-ramadas As far as I remember, I was having some issues where when the cleanup was running at startup it prevented the quick panel from showing up right away.  This is definitely a situation that isn't likely to present itself to a normal user, but during development I noticed it a lot.  The startup cleanup runs every time you save a new version of the plugin.  I would save the plugin and want to test the plugin right away, but was being blocked by the cleanup.