From d1cd6d5645e5f9d41f26963268b3ef602652895f Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 12 Nov 2015 11:29:53 +0900 Subject: [PATCH] Labels plugin: drop wallet on window close Will help GC --- plugins/labels.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/labels.py b/plugins/labels.py index f9598f208..7c74dfdff 100644 --- a/plugins/labels.py +++ b/plugins/labels.py @@ -53,6 +53,9 @@ class Plugin(BasePlugin): t.setDaemon(True) t.start() + def on_close_window(self, window): + self.wallets.pop(window.wallet) + def version(self): return "0.0.1"