rtph263pay: Fix leak for B-fragments
authorStian Selnes <stian@pexip.com>
Tue, 18 Oct 2016 09:09:10 +0000 (11:09 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Nov 2016 18:18:14 +0000 (20:18 +0200)
commitbcff182fd9bdbbd7912f0d84ec8136996b2c0ac6
tree311e3ded754de573f77962eaa9d406ae10e2d156
parent6e7816c589abd3f04eafa04694cc6ccb8943f7a3
rtph263pay: Fix leak for B-fragments

Altough commits 6a16be7, 64f9d08 and 0c7e3a8 fixed some issues they
introduced others. This patch fixes the leak of one macroblock for every
B fragment.

Macroblock structures must not be freed immediately after finding the
boundaries as they are stored and used later. However the inital dummy
structure (used for finding the first boundary) must be freed.

CID #1212156

https://bugzilla.gnome.org/show_bug.cgi?id=773512
gst/rtp/gstrtph263pay.c