diff options
| author | XANTRONIX Development | 2022-03-07 18:00:15 -0500 | 
|---|---|---|
| committer | XANTRONIX Development | 2022-03-07 18:00:15 -0500 | 
| commit | 797e92c3287c9ce4958d2ab51c8ad55972373dfc (patch) | |
| tree | acab002a4ce09e885edad31c1d456357e7e3efe4 /src | |
| parent | 6cb20921e04d134438723feb7b938f74efed8bc8 (diff) | |
| download | xas-797e92c3287c9ce4958d2ab51c8ad55972373dfc.tar.gz xas-797e92c3287c9ce4958d2ab51c8ad55972373dfc.tar.bz2 xas-797e92c3287c9ce4958d2ab51c8ad55972373dfc.zip | |
Plug additional memory leaks
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);          } | 
 
    