Memory leak in pixbuf?



Hi!

I try reproduce error #584944 (gnome bugzilla) as clean experiment, and when
use code from gtk-demo, i resive simular results:

with show animation from file loaded progressive (
http://0lvins-experements.googlecode.com/svn/trunk/c/pixpuf-gtk/main-anim.c):
memory usage grow and free only on g_object_unref - for 6.5 Mb file - usage
1Gb.

Same behavior on load file full in one part (gtk_image_new_from_file)
http://0lvins-experements.googlecode.com/svn/trunk/c/pixpuf-gtk/main-anim.c

What I do by wrong way? Or it's bug in process animation in gtk?

In documentation wrote (
http://library.gnome.org/devel/gdk-pixbuf/2.20/gdk-pixbuf-animation.html#gdk-pixbuf-animation-iter-get-pixbuf):

...the returned pixbuf will become invalid when the iterator advances to the
next frame...

I think after get next frame - previous frame can be reused or free, and not
need cache for all frames after receive all compressed  image - frame can be
uncompressed after(in) request for frame in needed time. Now it's like after
receive image - him uncompressed to one-linked list pixpuf's, and free only
on unref gdk-pixbuf-animation.

-- 
Best regards,
                  Denis.



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