Commit f796ef33 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

LinphoneCallStats is now unowned to prevent leak when linphone_call_get_stats...

LinphoneCallStats is now unowned to prevent leak when linphone_call_get_stats method will be wrapped
parent 83b94af9
...@@ -1307,9 +1307,9 @@ LinphoneCall * linphone_call_new_outgoing(struct _LinphoneCore *lc, LinphoneAddr ...@@ -1307,9 +1307,9 @@ LinphoneCall * linphone_call_new_outgoing(struct _LinphoneCore *lc, LinphoneAddr
call->dir=LinphoneCallOutgoing; call->dir=LinphoneCallOutgoing;
call->core=lc; call->core=lc;
call->dest_proxy=cfg; call->dest_proxy=cfg;
call->audio_stats = linphone_call_stats_new(); call->audio_stats = linphone_call_stats_ref(linphone_call_stats_new());
call->video_stats = linphone_call_stats_new(); call->video_stats = linphone_call_stats_ref(linphone_call_stats_new());
call->text_stats = linphone_call_stats_new(); call->text_stats = linphone_call_stats_ref(linphone_call_stats_new());
linphone_call_outgoing_select_ip_version(call,to,cfg); linphone_call_outgoing_select_ip_version(call,to,cfg);
linphone_call_get_local_ip(call, to); linphone_call_get_local_ip(call, to);
call->params = linphone_call_params_copy(params); call->params = linphone_call_params_copy(params);
...@@ -1492,9 +1492,9 @@ LinphoneCall * linphone_call_new_incoming(LinphoneCore *lc, LinphoneAddress *fro ...@@ -1492,9 +1492,9 @@ LinphoneCall * linphone_call_new_incoming(LinphoneCore *lc, LinphoneAddress *fro
LinphoneNatPolicy *nat_policy = NULL; LinphoneNatPolicy *nat_policy = NULL;
int i; int i;
call->dir=LinphoneCallIncoming; call->dir=LinphoneCallIncoming;
call->audio_stats = linphone_call_stats_new(); call->audio_stats = linphone_call_stats_ref(linphone_call_stats_new());
call->video_stats = linphone_call_stats_new(); call->video_stats = linphone_call_stats_ref(linphone_call_stats_new());
call->text_stats = linphone_call_stats_new(); call->text_stats = linphone_call_stats_ref(linphone_call_stats_new());
sal_op_set_user_pointer(op,call); sal_op_set_user_pointer(op,call);
call->op=op; call->op=op;
call->core=lc; call->core=lc;
...@@ -4290,7 +4290,7 @@ BELLE_SIP_INSTANCIATE_VPTR(LinphoneCallStats, belle_sip_object_t, ...@@ -4290,7 +4290,7 @@ BELLE_SIP_INSTANCIATE_VPTR(LinphoneCallStats, belle_sip_object_t,
NULL, // destroy NULL, // destroy
_linphone_call_stats_clone, // clone _linphone_call_stats_clone, // clone
NULL, // marshal NULL, // marshal
FALSE TRUE
); );
LinphoneCallStats *linphone_call_stats_new() { LinphoneCallStats *linphone_call_stats_new() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment