Leak in Gtk2::SimpleList
- From: Torsten Schoenfeld <kaffeetisch gmx de>
- To: gtk-perl-list gnome org
- Subject: Leak in Gtk2::SimpleList
- Date: Thu, 05 Jan 2012 20:57:55 +0100
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]