summaryrefslogtreecommitdiff
path: root/codecs/codec_gsm.c
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-02 19:52:23 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-02 19:52:23 +0000
commitb9ae36c893be71d08354eda4a1e9c57ecd1e9747 (patch)
tree49a0b255f96975b7dfdf034d2510066935dc2894 /codecs/codec_gsm.c
parent708c892f574fa92b0054d079713ed9b1ec4d3da7 (diff)
dom mar 2 20:52:10 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs/codec_gsm.c')
-rwxr-xr-xcodecs/codec_gsm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/codecs/codec_gsm.c b/codecs/codec_gsm.c
index 6a3ff8054..42d70f432 100755
--- a/codecs/codec_gsm.c
+++ b/codecs/codec_gsm.c
@@ -196,6 +196,8 @@ static struct ast_frame *lintogsm_frameout(struct ast_translator_pvt *tmp)
static void gsm_destroy_stuff(struct ast_translator_pvt *pvt)
{
+ if (pvt->gsm)
+ gsm_destroy(pvt->gsm);
free(pvt);
localusecnt--;
}