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

This commit is contained in:
Friendly Automation 2020-01-30 09:13:40 -06:00 committed by Gerrit Code Review
commit 499f41051e
1 changed files with 1 additions and 1 deletions

View File

@ -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;