Leak in Gtk2::SimpleList



Code like this:

  use Gtk2 -init;
  use Gtk2::SimpleList;
  while (1) {
    my $list = Gtk2::SimpleList->new('Text Field' => 'text');
  }

uses more and more memory. The cause seems to be that the freeing up of the Gtk2::TreeView and Gtk2::ListStore used by Gtk2::SimpleList is deferred until global destruction. The change <http://git.gnome.org/browse/perl-Gtk2/commit/?id=d19403bae3af654a3f223f82dfcb11c62fed0329> seems to be the culprit; reverting it makes the leak go away. This smells a lot like some circular reference issue, but I just cannot see it.

Can anyone provide some clue?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]