Clean up ast_json with ast_json_unref

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/78/78/1
David M. Lee 12 years ago
parent 85fb0e61bf
commit 309d7e08f0

@ -384,7 +384,7 @@ void ast_bridge_publish_enter(struct ast_bridge *bridge, struct ast_channel *cha
struct ast_channel *swap)
{
RAII_VAR(struct stasis_message *, msg, NULL, ao2_cleanup);
RAII_VAR(struct ast_json *, blob, NULL, ao2_cleanup);
RAII_VAR(struct ast_json *, blob, NULL, ast_json_unref);
if (swap) {
blob = ast_json_pack("{s: s}", "swap", ast_channel_uniqueid(swap));

Loading…
Cancel
Save