VST Wrapper: Fixed a potential double free() error.