Take advantage of the fact that stasis_unsubscribe now returns NULL

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kinsey Moore
2013-03-15 13:04:52 +00:00
parent 8c444f823b
commit ccb5526508
3 changed files with 4 additions and 8 deletions

View File

@@ -1367,8 +1367,7 @@ void ast_channel_internal_cleanup(struct ast_channel *chan)
ast_string_field_free_memory(chan);
stasis_unsubscribe(chan->forwarder);
chan->forwarder = NULL;
chan->forwarder = stasis_unsubscribe(chan->forwarder);
ao2_cleanup(chan->topic);
chan->topic = NULL;