Commit fa2450a4 authored by jehan's avatar jehan
Browse files

fix crash in search bar on ios

parent e9a88353
...@@ -375,9 +375,11 @@ list<SearchResult> MagicSearch::searchInFriend(const LinphoneFriend *lFriend, co ...@@ -375,9 +375,11 @@ list<SearchResult> MagicSearch::searchInFriend(const LinphoneFriend *lFriend, co
phoneNumber = number; phoneNumber = number;
if (proxy) { if (proxy) {
char * buff = linphone_proxy_config_normalize_phone_number(proxy, phoneNumber.c_str()); char * buff = linphone_proxy_config_normalize_phone_number(proxy, phoneNumber.c_str());
if (buff) {
phoneNumber = buff; phoneNumber = buff;
bctbx_free(buff); bctbx_free(buff);
} }
}
unsigned int weightNumber = getWeight(phoneNumber.c_str(), filter); unsigned int weightNumber = getWeight(phoneNumber.c_str(), filter);
if (presence) { if (presence) {
char *contact = linphone_presence_model_get_contact(presence); char *contact = linphone_presence_model_get_contact(presence);
......
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