mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
Fix Gtk assert
The first parameter of g_utf8_casefold must not be NULL
This commit is contained in:
parent
9cc3b9a779
commit
f6e02a9cc4
1 changed files with 4 additions and 8 deletions
12
gtk/main.c
12
gtk/main.c
|
|
@ -608,18 +608,14 @@ static gboolean linphone_gtk_iterate(LinphoneCore *lc){
|
|||
static gboolean uribar_completion_matchfunc(GtkEntryCompletion *completion, const gchar *key, GtkTreeIter *iter, gpointer user_data){
|
||||
char* address = NULL;
|
||||
gboolean ret = FALSE;
|
||||
gchar *tmp= NULL;
|
||||
gtk_tree_model_get(gtk_entry_completion_get_model(completion),iter,0,&address,-1);
|
||||
|
||||
tmp = g_utf8_casefold(address,-1);
|
||||
if (tmp){
|
||||
if (strstr(tmp,key))
|
||||
ret=TRUE;
|
||||
if(address) {
|
||||
gchar *tmp = g_utf8_casefold(address,-1);
|
||||
if (strstr(tmp,key)) ret=TRUE;
|
||||
g_free(tmp);
|
||||
}
|
||||
|
||||
if( address)
|
||||
g_free(address);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue