Use ttd_unique_free_ptr in ScriptConfig