summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-07 18:00:15 -0500
committerXANTRONIX Development2022-03-07 18:00:15 -0500
commit797e92c3287c9ce4958d2ab51c8ad55972373dfc (patch)
treeacab002a4ce09e885edad31c1d456357e7e3efe4 /src
parent6cb20921e04d134438723feb7b938f74efed8bc8 (diff)
downloadxas-797e92c3287c9ce4958d2ab51c8ad55972373dfc.tar.gz
xas-797e92c3287c9ce4958d2ab51c8ad55972373dfc.tar.bz2
xas-797e92c3287c9ce4958d2ab51c8ad55972373dfc.zip
Plug additional memory leaks
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);
}