Re: [gtkmm] how to free a pixbuf

Thanks, this little snippet worked as expected, i.e. it does not leak
memory. As I suspected, it must be a design flaw in my application. So I
guess I should ask the following question:

What's the general procedure for reading and displaying a sequence of
images (of possibly different sizes)? The application must iterate through
the list of images upon user input (e.g. as in xv: space for the next
image, backspace for the previous).


> {
>   Glib::RefPtr<Gdk::Pixbuf> mypixbuf;
>   for (int i = 0; i < 100; ++i)
>     mypixbuf = Gdk::Pixbuf::create_from_file(filename);
> }

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