Merge "ast_json_pack(): Use safer json ref mechanism."

This commit is contained in:
Jenkins2 2017-12-19 10:23:41 -06:00 committed by Gerrit Code Review
commit 758b321f4c
1 changed files with 2 additions and 2 deletions

View File

@ -1835,9 +1835,9 @@ void ast_cel_publish_event(struct ast_channel *chan,
struct ast_json *cel_blob;
struct stasis_message *message;
cel_blob = ast_json_pack("{s: i, s: O}",
cel_blob = ast_json_pack("{s: i, s: o}",
"event_type", event_type,
"event_details", blob);
"event_details", ast_json_ref(blob));
message = ast_channel_blob_create_from_cache(ast_channel_uniqueid(chan), cel_generic_type(), cel_blob);
if (message) {