Merge "res_pjsip_pubsub: Increment persistence data ref when recreating." into 17

17.3
George Joseph 5 years ago committed by Gerrit Code Review
commit 2c72e26478

@ -1264,7 +1264,7 @@ static struct ast_sip_subscription *allocate_subscription(const struct ast_sip_s
*/
if (tree->persistence && tree->persistence->generator_data) {
sub->persistence_data = ast_json_object_get(tree->persistence->generator_data, resource);
sub->persistence_data = ast_json_ref(ast_json_object_get(tree->persistence->generator_data, resource));
}
sub->handler = handler;

Loading…
Cancel
Save