Fixed a free/delete mismatch in decoder.cpp