mov: fix leaking memory with multiple drefs.
authorDale Curtis <dalecurtis@chromium.org>
Fri, 13 Apr 2012 00:56:57 +0000 (17:56 -0700)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 15 Apr 2012 02:41:52 +0000 (19:41 -0700)
commit4ebd422c04849a21a6bb2128a715979e8067e6a6
tree22c44fda727ce3f350ef4257fe25ce7adfcd69d5
parent7f77e9041a79fd05ed872ff9eeb06f109d30acb7
mov: fix leaking memory with multiple drefs.

Instead of allocating over the original, free first. MOVStreamContext
is zero initialized so no double free will occur. Same style as other
fixes for the same problem in this file.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/mov.c