Gtk2::ImageView memory issue



Hi there,

I've implemented parts of my application with help of the great
Gtk2::ImageView module. 
In the last days i've noticed some memory leaking and found out that
Gtk2::ImageView::Tool::Selector is the reason for that. I've attached a
little demo to demonstrate my problem. Each time you press the Button a
screenshot will be taken and the ImageView will be updated. In this sub
the Gtk2::ImageView::Tool::Selector is created each time. While pressing
the button you can see that used memory will get higher and higher...So
there is a possible memory leak here.

Of course it is not useful to create the Gtk2::ImageView::Tool::Selector
each time, but this is just a little test to demonstrate my problem (the
functionality is in a module in my app).

Does anyone has a clue what to do here? Maybe i am doing something
totally wrong ...

Thanks in advance.

Cheers
Mario

Attachment: imageview.pl
Description: Perl program



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