diff options
author | XANTRONIX Development | 2022-02-27 15:34:26 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-27 15:34:26 -0500 |
commit | b7c5722e33c5fe993fac31738d78ce2ac05f4747 (patch) | |
tree | 6a0b53a5b5e3b397ddca00ab987b574d7c436dd9 | |
parent | a540a8d63aee39aaaa259d1db42e1af4e38f3d80 (diff) | |
download | xas-b7c5722e33c5fe993fac31738d78ce2ac05f4747.tar.gz xas-b7c5722e33c5fe993fac31738d78ce2ac05f4747.tar.bz2 xas-b7c5722e33c5fe993fac31738d78ce2ac05f4747.zip |
Plug resource leaks in examples/spatial.c
-rw-r--r-- | examples/spatial.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/spatial.c b/examples/spatial.c index b291fd2..ac467ee 100644 --- a/examples/spatial.c +++ b/examples/spatial.c @@ -116,6 +116,8 @@ int main(int argc, char **argv) { goto error_vox_new; } + xas_vox_set_parameter_float(vox, "Duration_Stretch", 1.3); + if ((voice = xas_vox_stream_new(vox)) == NULL) { goto error_vox_stream_new; } @@ -168,6 +170,8 @@ int main(int argc, char **argv) { xas_audio_stream_destroy(output); xas_spatial_scene_destroy(scene); + xas_audio_stream_destroy(voice); + xas_vox_destroy(vox); xas_audio_stream_destroy(synth); xas_audio_stream_destroy(wave); |