Ticket #2012 (closed defect: fixed)
Prevent memory leak when rejecting a call from on_incoming_call() callback
|Reported by:||riza||Owned by:||bennylp|
|Backport to 1.x milestone:||Backported:||no|
The call->incoming_data() will get reset (set to NULL) on reset_call(), which lead to memory leak since it's not properly released.
One example of this case is when rejecting a call from on_incoming_call() callback.
Thanks to Alexandre Beaulieu for the report.