again fix memory leak for old codecs