diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/seq.c | 2 | ||||
-rw-r--r-- | src/spatial.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -497,6 +497,8 @@ int xas_seq_play(xas_seq *seq, xas_audio_stream *sink) { frame++; } + xas_audio_stream_destroy(source); + return frame * buffer_size; error_audio_stream_io: diff --git a/src/spatial.c b/src/spatial.c index b5bb8b6..b764a03 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -378,6 +378,7 @@ void xas_spatial_scene_destroy(xas_spatial_scene *scene) { xas_spatial_object *next = object->next; if (object->flags & XAS_SPATIAL_OBJECT_MANAGED) { + xas_audio_stream_destroy(object->source); xas_object_destroy(object->ctx); } |