summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/seq.c2
-rw-r--r--src/spatial.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/seq.c b/src/seq.c
index ea51bb0..b29a98a 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -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);
}