Skip to content

Commit

Permalink
allow the gc to collect some objects after closing the dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
OlliL committed Sep 7, 2023
1 parent 051f9c9 commit f5578a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gramps/plugins/tool/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,11 @@ def __init__(self, dbstate, uistate, track, glade, closeall):
self.invert_button.connect("clicked", self.invert_clicked)

self.parent_iter_cache = {}
self.track_ref_for_deletion("parent_iter_cache")
self.track_ref_for_deletion("real_model")
self.track_ref_for_deletion("filt_model")
self.track_ref_for_deletion("sort_model")
self.track_ref_for_deletion("warn_tree")

self.real_model = Gtk.TreeStore(
GObject.TYPE_BOOLEAN,
Expand Down Expand Up @@ -892,7 +897,7 @@ def close(self, *obj):
"""close the dialog and write out the file"""
new_ignores = self.get_new_marking()
self.save_ignored(new_ignores)

ManagedWindow.close(self, *obj)
self.closeall()

Expand Down

0 comments on commit f5578a4

Please sign in to comment.