Commit 751fc908 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix compilation errors.

parent 1cb1d7c5
......@@ -317,8 +317,8 @@ void linphone_gtk_call_log_update(GtkWidget *w){
lf=linphone_core_get_friend_by_address(linphone_gtk_get_core(),addr);
if(lf != NULL){
/*update display name from friend*/
const char *name = linphone_friend_get_name(lf);
if (name != NULL) linphone_address_set_display_name(la, name);
display = linphone_friend_get_name(lf);
if (display != NULL) linphone_address_set_display_name(la, display);
} else {
display=linphone_address_get_display_name(la);
}
......
......@@ -97,8 +97,8 @@ static void linphone_gtk_set_selection_to_uri_bar(GtkTreeView *treeview){
friend=linphone_address_as_string(addr);
gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(linphone_gtk_get_main_window(),"uribar")),friend);
linphone_address_unref(addr);
ms_free(friend);
}
ms_free(friend);
}
}
......@@ -608,7 +608,7 @@ static int get_friend_weight(const LinphoneFriend *lf){
int w=0;
LinphoneCore *lc=linphone_gtk_get_core();
LinphoneAddress *addr = linphone_friend_get_address(lf);
LinphoneChatRoom *cr;
LinphoneChatRoom *cr = NULL;
if (addr != NULL) {
cr = linphone_core_get_chat_room(lc, addr);
......
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