#8394 Destroy the palette when the invoker is dettached

This commit is contained in:
Tomeu Vizoso 2008-09-10 12:31:10 +02:00
parent 0cf0cacbd0
commit c79bc15f5f

View File

@ -749,6 +749,9 @@ class Invoker(gobject.GObject):
def detach(self):
self.parent = None
if self._palette is not None:
self._palette.destroy()
self._palette = None
def _get_position_for_alignment(self, alignment, palette_dim):
palette_halign = alignment[0]