diff options
author | sanine <sanine.not@pm.me> | 2022-09-07 11:23:34 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-09-07 11:23:34 -0500 |
commit | a77b34a4ebdc994cce7a3d1f00121f421ca31b53 (patch) | |
tree | 19901965a6e2d0e0afe5f441306acb15cd38af95 /src/sound.c | |
parent | 500dd00fb11efdd19aef924b0d8ff0b370c28d33 (diff) |
update README and fix memory leaks
Diffstat (limited to 'src/sound.c')
-rw-r--r-- | src/sound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound.c b/src/sound.c index 7296578..73bd6d4 100644 --- a/src/sound.c +++ b/src/sound.c @@ -34,11 +34,11 @@ int sound_copy(struct mossrose_sound_t *dest, struct mossrose_sound_t *src) void sound_free_audio(struct mossrose_sound_t *sound) { - if (sound->left == NULL) { + if (sound->left != NULL) { free(sound->left); sound->left = NULL; } - if (sound->right == NULL) { + if (sound->right != NULL) { free(sound->right); sound->right = NULL; } |