Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/graphics
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpgritti@gmail.com>2008-09-13 11:23:49 (GMT)
committer Marco Pesenti Gritti <mpgritti@gmail.com>2008-09-13 11:25:40 (GMT)
commit1ac335f2718b26d01fbb2ecca82a2f81c97446f3 (patch)
treebf0bf0ea07ff0ae32f71b5475596f2038dbd1c91 /src/sugar/graphics
parent1af96495d262afafdf09317d49609f09cfe40f67 (diff)
Break the reference cycle between menu and palette. #8469
Diffstat (limited to 'src/sugar/graphics')
-rw-r--r--src/sugar/graphics/palette.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py
index 8201cf8..0b7a268 100644
--- a/src/sugar/graphics/palette.py
+++ b/src/sugar/graphics/palette.py
@@ -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()