[Xfce4-commits] [apps/xfce4-notifyd] 01/01: Make sure to only free pixbuf if it's there
noreply at xfce.org
noreply at xfce.org
Tue Sep 5 15:38:44 CEST 2017
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-notifyd.
commit fae5cf67c2e0323a090e44e3c983ed2c1a13a576
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Tue Sep 5 15:38:37 2017 +0200
Make sure to only free pixbuf if it's there
---
xfce4-notifyd-config/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xfce4-notifyd-config/main.c b/xfce4-notifyd-config/main.c
index 3acd2c5..2f279fe 100644
--- a/xfce4-notifyd-config/main.c
+++ b/xfce4-notifyd-config/main.c
@@ -590,7 +590,8 @@ xfce4_notifyd_log_populate (NotificationLogWidgets *log_widgets)
pixbuf = gdk_pixbuf_new_from_file_at_scale (notify_log_icon_path,
24, 24, FALSE, NULL);
app_icon = gtk_image_new_from_pixbuf (pixbuf);
- g_object_unref(pixbuf);
+ if (pixbuf)
+ g_object_unref (pixbuf);
} else {
app_icon = gtk_image_new_from_icon_name (tmp, GTK_ICON_SIZE_LARGE_TOOLBAR);
gtk_image_set_pixel_size (GTK_IMAGE (app_icon), 24);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list