Commit c364aaf1 authored by Ghislain MARY's avatar Ghislain MARY

Fix crash in linphone_proxy_config_set_identity().

parent 5e8c64cf
......@@ -249,7 +249,7 @@ int linphone_proxy_config_set_identity(LinphoneProxyConfig *cfg, const char *ide
if (identity!=NULL && strlen(identity)>0){
LinphoneAddress *addr=linphone_address_new(identity);
int ret=linphone_proxy_config_set_identity_address(cfg, addr);
linphone_address_destroy(addr);
if (addr) linphone_address_destroy(addr);
return ret;
}
return -1;
......
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