From d39d83e525d4a62e5b73727c65c7864d0adf2865 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 17 Feb 2009 13:51:52 +0000 Subject: Replaced sci_free() with free() - it's OK to free a NULL pointer, so the checking that sci_free() performed is not necessary svn-id: r38406 --- engines/sci/sfx/mixer/soft.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/sci/sfx/mixer') diff --git a/engines/sci/sfx/mixer/soft.cpp b/engines/sci/sfx/mixer/soft.cpp index 20a4bdc7ad..c736aa3c00 100644 --- a/engines/sci/sfx/mixer/soft.cpp +++ b/engines/sci/sfx/mixer/soft.cpp @@ -216,7 +216,7 @@ _mix_unsubscribe(sfx_pcm_mixer_t *self, sfx_pcm_feed_t *feed) { feed->destroy(feed); if (fs->buf) - sci_free(fs->buf); + free(fs->buf); self->feeds_nr--; @@ -255,16 +255,16 @@ mix_exit(sfx_pcm_mixer_t *self) { _mix_unsubscribe(self, self->feeds[0].feed); if (P->outbuf) - sci_free(P->outbuf); + free(P->outbuf); if (P->writebuf) - sci_free(P->writebuf); + free(P->writebuf); if (P->compbuf_l) - sci_free(P->compbuf_l); + free(P->compbuf_l); if (P->compbuf_l) - sci_free(P->compbuf_r); + free(P->compbuf_r); - sci_free(P); + free(P); self->private_bits /* = P */ = NULL; RELEASE_LOCK(); -- cgit v1.2.3