same as in other places, check that generator->release is not NULL
authorLuigi Rizzo <rizzo@icir.org>
Thu, 21 Dec 2006 19:36:42 +0000 (19:36 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Thu, 21 Dec 2006 19:36:42 +0000 (19:36 +0000)
commita2e6c6277f31dcc9464070e0021a40598a7e9979
treef083356d9a002c4d60b3401e832274f12b72f63a
parent1080c61d04ecc1e3c029f8299c52e249d87f0e77
same as in other places, check that generator->release is not NULL
before calling it.
This allows generators to set it to NULL when they have nothing to
do there.

Later, the three copies of the code that releases a generator
should be moved to a function.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48766 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c