This change prevents a crash from occurring if res_musiconhold.so
authorMark Michelson <mmichelson@digium.com>
Tue, 18 Nov 2008 23:59:02 +0000 (23:59 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 18 Nov 2008 23:59:02 +0000 (23:59 +0000)
commita361f7897a5d2a0038f3da9e8403b825d5c9f644
tree3acbc84a789da1299954cb3b5e7c974e50d88f3c
parentd584748f0c892949dc7a75d41b3b8b29bbcb63bf
This change prevents a crash from occurring if res_musiconhold.so
is unloaded and then Asterisk is stopped. The problem was that
we are not unregistering the ast_moh_destroy function at exit.

(closes issue #13761)
Reported by: eliel
Patches:
      res_musiconhold.c.patch uploaded by eliel (license 64)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_musiconhold.c