swresample/swresample: Cleanup on init failure.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Jun 2015 01:47:55 +0000 (03:47 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 28 Jul 2015 00:33:56 +0000 (02:33 +0200)
commitde943a3460a8a0f88cbdbfa1ef16ae93dbbbee29
treee9400b6e0090ff66ccf2c38b3ac65f7da4d07522
parent1728aa3442d7e3a18268a9b8ae8fcb5ff914fa33
swresample/swresample: Cleanup on init failure.

This avoids leaks if the user doest call swr_close() after a failed init

Found-by: James Almer <jamrial@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c3f87f7545d42520921bc448b9fbd7324c574e49)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample.c