Re: gdk_pixmap_unref in perl-GTK?

On 02/10/01 Michael Ivanov wrote:
Is there any way to release pixmap, created with new Gtk::Gdk::Pixmap,
on X server side? I browsed through perl-gtk sources, but didn't find
an interface to gdk_pixmap_unref() (which, as I understand, should do
the job).

The pixmap is automatically unref()ed when it isn't used anymore, you
should not need to unref it explicitly from perl code.

        undef $pixmap;

Should do the right thing when you are done with it (or just let perl do it
if it's a my var that goes out of scope...). If you think there is some kind 
of memory leak, please post more details.


lupus debian org                                     debian/rules
lupus ximian com                             Monkeys do it better

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