Commit fa2450a4 authored by jehan's avatar jehan
Browse files

fix crash in search bar on ios

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