From 797e92c3287c9ce4958d2ab51c8ad55972373dfc Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 7 Mar 2022 18:00:15 -0500 Subject: Plug additional memory leaks --- src/seq.c | 2 ++ src/spatial.c | 1 + 2 files changed, 3 insertions(+) (limited to 'src') 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); } -- cgit v1.2.3