Skip to content
Snippets Groups Projects
Commit 5801917a authored by Richard Mudgett's avatar Richard Mudgett
Browse files

ast_json_pack(): Use safer json ref mechanism.

Change-Id: I49204db2e57ae96eee43909c18ed007c09ac817e
parent b14d1659
Branches
Tags
No related merge requests found
......@@ -1837,9 +1837,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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment