Re: [gtkmm] how to free a pixbuf
- From: Silviu D Minut <minutsil cse msu edu>
- To: Simon Fuhrmann <NightSlayer gmx de>
- Cc: <gtkmm-list gnome org>
- Subject: Re: [gtkmm] how to free a pixbuf
- Date: Wed, 15 Oct 2003 16:28:06 -0400 (EDT)
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).
Thanks!
> {
> 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]