Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
ca80f9d9
Commit
ca80f9d9
authored
Oct 15, 2012
by
Yann Diorcet
Browse files
Add pbuf nullity checks
parent
187aedb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
gtk/main.c
gtk/main.c
+8
-4
No files found.
gtk/main.c
View file @
ca80f9d9
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment