summaryrefslogtreecommitdiff
path: root/src/sound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound.c')
-rw-r--r--src/sound.c4
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;
}