codecparsers: h264: fix memory leak in GstH264PPS.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 27 Jun 2014 08:53:20 +0000 (10:53 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 1 Jul 2014 14:41:19 +0000 (16:41 +0200)
commit18f0de09800d72160708f446dd89703c828050e7
tree5ba2be20efd377ed28106d10f989e858fb6d5057
parentc705604e30eab5556e76bc530714ca0ce137af2f
codecparsers: h264: fix memory leak in GstH264PPS.

The gst_h264_parse_pps() function dynamically allocates the slice
group ids map array, so that needs to be cleared before parsing a
new PPS NAL unit again, or when it is no longer needed.

Likewise, a clean copy to the internal NAL parser state needs to be
performed so that to avoid a double-free corruption.

https://bugzilla.gnome.org/show_bug.cgi?id=707282

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/codecparsers/gsth264parser.c
gst-libs/gst/codecparsers/gsth264parser.h
gst/videoparsers/gsth264parse.c