mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 17:59:21 +00:00
Add pbuf nullity checks
This commit is contained in:
parent
187aedb405
commit
ca80f9d914
1 changed files with 8 additions and 4 deletions
12
gtk/main.c
12
gtk/main.c
|
|
@ -279,8 +279,10 @@ static void linphone_gtk_configure_window(GtkWidget *w, const char *window_name)
|
|||
linphone_gtk_visibility_set(shown,window_name,w,TRUE);
|
||||
if (icon_path) {
|
||||
GdkPixbuf *pbuf=create_pixbuf(icon_path);
|
||||
gtk_window_set_icon(GTK_WINDOW(w),pbuf);
|
||||
g_object_unref(G_OBJECT(pbuf));
|
||||
if(pbuf != NULL) {
|
||||
gtk_window_set_icon(GTK_WINDOW(w),pbuf);
|
||||
g_object_unref(G_OBJECT(pbuf));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1526,8 +1528,10 @@ static void linphone_gtk_configure_main_window(){
|
|||
}
|
||||
if (search_icon){
|
||||
GdkPixbuf *pbuf=create_pixbuf(search_icon);
|
||||
gtk_image_set_from_pixbuf(GTK_IMAGE(linphone_gtk_get_widget(w,"directory_search_button_icon")),pbuf);
|
||||
g_object_unref(G_OBJECT(pbuf));
|
||||
if(pbuf != NULL) {
|
||||
gtk_image_set_from_pixbuf(GTK_IMAGE(linphone_gtk_get_widget(w,"directory_search_button_icon")),pbuf);
|
||||
g_object_unref(G_OBJECT(pbuf));
|
||||
}
|
||||
}
|
||||
if (home){
|
||||
gchar *tmp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue