fix double free if normal reader is used
only delete decoder if flex reader is not used
delete old file