Nothing to see here, move along.
[asterisk/asterisk.git] / res / res_sip_pubsub.c
index df61554..bc62ad5 100644 (file)
@@ -827,7 +827,7 @@ static pj_bool_t pubsub_on_rx_publish_request(pjsip_rx_data *rdata)
                        ao2_link(handler->publications, publication);
 
                        AST_SCHED_REPLACE_UNREF(publication->sched_id, sched, expires * 1000, publish_expire, publication,
                        ao2_link(handler->publications, publication);
 
                        AST_SCHED_REPLACE_UNREF(publication->sched_id, sched, expires * 1000, publish_expire, publication,
-                               ao2_ref(publication, -1), NULL, ao2_ref(publication, +1));
+                                               ao2_ref(publication, -1), ao2_ref(publication, -1), ao2_ref(publication, +1));
                } else {
                        AST_SCHED_DEL_UNREF(sched, publication->sched_id, ao2_ref(publication, -1));
                }
                } else {
                        AST_SCHED_DEL_UNREF(sched, publication->sched_id, ao2_ref(publication, -1));
                }