GNOME Bugzilla – Bug 89411
gdk-pixbuf-csource leaks memory
Last modified: 2010-07-10 04:06:07 UTC
Unless I missed something obvious, gdk-pixbuf-csource leaks a good amount of memory in gdk_pixdata_to_csource(). In line 727 the function gdk_pixdata_serialize() is called which returns a newly allocated character array. This array is never freed. I'll attach a patch that fixes the problem.
Created attachment 10118 [details] [review] patch that plugs the reported memory leak
How does stream get initialized if cdata.dump_stream is FALSE?
By the very first lines of the patch. The stream variable is unconditionally initialized to NULL.
Doh :-) Go ahead and commit to both branch. (Though I'm not all that worried by this memory leak.)
OK, fixed in both branches.