From 934793a0f9a842e7238bfb0a35fd3b92045457cb Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 13 Jul 2023 18:43:01 +0100 Subject: [PATCH] Fix garbage collection issue in UIManager --- gramps/gui/uimanager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gramps/gui/uimanager.py b/gramps/gui/uimanager.py index fc5c46128..826b34650 100644 --- a/gramps/gui/uimanager.py +++ b/gramps/gui/uimanager.py @@ -213,6 +213,7 @@ class UIManager(): # need to copy the tree so we can preserve original for later edits. editable = copy.deepcopy(self.et_xml) iterator(editable) # clean up tree to builder specifications + del iterator # Needed for garbage collection # The following should work, but seems to have a Gtk bug # xml_str = ET.tostring(editable, encoding="unicode")