destroy the loaded say.conf on module unload
authorRussell Bryant <russell@russellbryant.com>
Tue, 13 Jun 2006 04:40:15 +0000 (04:40 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 13 Jun 2006 04:40:15 +0000 (04:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33786 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_playback.c

index 6b9fb68..32114ca 100644 (file)
@@ -472,6 +472,9 @@ static int unload_module(void *mod)
 
        STANDARD_HANGUP_LOCALUSERS;
 
 
        STANDARD_HANGUP_LOCALUSERS;
 
+       if (say_cfg)
+               ast_config_destroy(say_cfg);
+
        return res;     
 }
 
        return res;     
 }