Fix crash in tms320 finalization