Break the reference cycle between menu and palette. #8469

master
Marco Pesenti Gritti 16 years ago
parent 1af96495d2
commit 1ac335f271

@ -280,6 +280,10 @@ class Palette(gtk.Window):
def __destroy_cb(self, palette):
self.set_group_id(None)
# Break the reference cycle. It looks like the gc is not able to free
# it, possibly because gtk.Menu memory handling is very special.
self.menu = None
def _add_menu(self):
self._menu_box = gtk.VBox()
self._secondary_box.pack_start(self._menu_box)

Loading…
Cancel
Save