swresample/resample: free existing ResampleContext on reinit
authorJames Almer <jamrial@gmail.com>
Tue, 21 Mar 2017 15:03:44 +0000 (12:03 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 21 Mar 2017 15:03:44 +0000 (12:03 -0300)
commitdb7a05dab0652d4ec6d89394c9024d02f44494a7
treec20629a53163815b99eb357580718067e1056214
parent2a8a8a2e98136c22f6e07ff669251afb8a033676
swresample/resample: free existing ResampleContext on reinit

Fixes memleak.

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
libswresample/resample.c