mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-27 16:07:15 -07:00
Merge "res_pjsip_pubsub: Increment persistence data ref when recreating."
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user