Break the reference cycle between menu and palette. #8469

This commit is contained in:
Marco Pesenti Gritti 2008-09-13 13:23:49 +02:00
parent 1af96495d2
commit 1ac335f271

View File

@ -279,6 +279,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()