asfdemux: Reset number of languages to 0 when freeing the array because of errors
authorSebastian Dröge <sebastian@centricular.com>
Mon, 30 Jan 2017 13:39:59 +0000 (15:39 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 30 Jan 2017 13:39:59 +0000 (15:39 +0200)
commitdec880031d16f1ee4919a36f49298419246cf6a8
treefd283d1a562b6646dab4cd649b8bc2e58f8acad7
parentbf8835a7df97269d73c06c6d9316249c3896bf9a
asfdemux: Reset number of languages to 0 when freeing the array because of errors

Otherwise we will happily index into the array at NULL if the requested
index is smaller than the number of languages that were previously
allocated.

https://bugzilla.gnome.org/show_bug.cgi?id=777937
gst/asfdemux/gstasfdemux.c