GNOME Bugzilla – Bug 653648
[ffmpegdec] allocates and leaks avpacket helper structs
Last modified: 2011-06-30 09:53:41 UTC
Created attachment 190935 [details] [review]
ffmpeg: avoid allocating and leaking local avpacket helper
Subject says all, note that one such struct is leaked for every input frame/buffer.
Attached patch uses some _init to setup an instance on stack, rather than allocating (and then leaking) one with some _new. Not sure what (if any) the particular reason was for going down the _new route to start with.
Author: Mark Nauwelaerts <firstname.lastname@example.org>
Date: Wed Jun 29 16:22:48 2011 +0200
ffmpegdec: avoid allocating and leaking local avpacket helpers
... by _init'ing them as locals rather than _new'ing them.