Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
69750c29
Commit
69750c29
authored
Aug 27, 2014
by
Simon Morlat
Browse files
fix refcount of proxy config
parent
b011dd62
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
coreapi/linphonecore.c
coreapi/linphonecore.c
+2
-1
coreapi/proxy.c
coreapi/proxy.c
+1
-1
mediastreamer2
mediastreamer2
+1
-1
No files found.
coreapi/linphonecore.c
View file @
69750c29
...
@@ -725,6 +725,7 @@ static void sip_config_read(LinphoneCore *lc)
...
@@ -725,6 +725,7 @@ static void sip_config_read(LinphoneCore *lc)
LinphoneProxyConfig
*
cfg
=
linphone_proxy_config_new_from_config_file
(
lc
,
i
);
LinphoneProxyConfig
*
cfg
=
linphone_proxy_config_new_from_config_file
(
lc
,
i
);
if
(
cfg
!=
NULL
){
if
(
cfg
!=
NULL
){
linphone_core_add_proxy_config
(
lc
,
cfg
);
linphone_core_add_proxy_config
(
lc
,
cfg
);
linphone_proxy_config_unref
(
cfg
);
}
else
{
}
else
{
break
;
break
;
}
}
...
@@ -2166,7 +2167,7 @@ static void proxy_update(LinphoneCore *lc){
...
@@ -2166,7 +2167,7 @@ static void proxy_update(LinphoneCore *lc){
lc
->
sip_conf
.
deleted_proxies
=
ms_list_remove_link
(
lc
->
sip_conf
.
deleted_proxies
,
elem
);
lc
->
sip_conf
.
deleted_proxies
=
ms_list_remove_link
(
lc
->
sip_conf
.
deleted_proxies
,
elem
);
ms_message
(
"Proxy config for [%s] is definitely removed from core."
,
linphone_proxy_config_get_addr
(
cfg
));
ms_message
(
"Proxy config for [%s] is definitely removed from core."
,
linphone_proxy_config_get_addr
(
cfg
));
_linphone_proxy_config_release_ops
(
cfg
);
_linphone_proxy_config_release_ops
(
cfg
);
linphone_proxy_config_
destroy
(
cfg
);
linphone_proxy_config_
unref
(
cfg
);
}
}
}
}
}
}
...
...
coreapi/proxy.c
View file @
69750c29
...
@@ -1137,7 +1137,7 @@ int linphone_core_add_proxy_config(LinphoneCore *lc, LinphoneProxyConfig *cfg){
...
@@ -1137,7 +1137,7 @@ int linphone_core_add_proxy_config(LinphoneCore *lc, LinphoneProxyConfig *cfg){
ms_warning
(
"ProxyConfig already entered, ignored."
);
ms_warning
(
"ProxyConfig already entered, ignored."
);
return
0
;
return
0
;
}
}
lc
->
sip_conf
.
proxies
=
ms_list_append
(
lc
->
sip_conf
.
proxies
,(
void
*
)
cfg
);
lc
->
sip_conf
.
proxies
=
ms_list_append
(
lc
->
sip_conf
.
proxies
,(
void
*
)
linphone_proxy_config_ref
(
cfg
)
)
;
linphone_proxy_config_apply
(
cfg
,
lc
);
linphone_proxy_config_apply
(
cfg
,
lc
);
return
0
;
return
0
;
}
}
...
...
mediastreamer2
@
90c0ea29
Subproject commit
a003a1cc349530dfffa937e16cb06a0c8b4632c8
Subproject commit
90c0ea293a934b3b23a3c6b70f8abe5db545a3d5
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment