media: release codec in the case of exception

Bug: 21171205
Change-Id: I804d9b29d965d0b1f2eca4eedf85b087ebb7b4a0
1 file changed