GNOME Bugzilla – Bug 515721
[rfb] rfbsrc leaking the rfb decoder
Last modified: 2008-02-12 05:18:35 UTC
Hi, the rfbsrc is currently leaking it's rfb decoder. The instance struct of it is never freed. This showed up while running the states unit test in valgrind.
Created attachment 104904 [details] [review] rfb.diff
For some reason there's another leak. The states unit test leaks the complete element although the element's dispose() function is called...
Is there a librfb deb package? I don't seem to have it available.
librfb should have been slurped into -bad long ago. It's in my personal CVS somewhere. http://www.comedi.org/cgi-bin/viewvc.cgi/librfb/
Erm, actually, it appears I did that long ago. Perhaps why it's in gst/, not ext/.
Oh hey, look at that. Whoops :)
OK, with the patch applied, I don't see any rfbsrc leak. That management of the rfb_decoder is a bit funky - it's allocated in _init, but freed in an error condition in _start(). That can be fixed after release though.
2008-02-12 Sebastian Dröge <slomo@circular-chaos.org> * gst/librfb/gstrfbsrc.c: (gst_rfb_src_dispose): Free the rfb decoder on finalize. Fixes bug #515721.