More memory fixes

This fixes memory leaks in ZASF and Controller. It also sets an uninitalised variable in audio_file_processor.
Merge pull request #1459 from DanWin/stable-1.1

More memory fixes