[gnome-applets] stickynotes: fix criticals



commit a968a8d4f000d98f0c270ead7a2629985868ffd8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Mar 26 15:47:27 2015 +0200

    stickynotes: fix criticals

 stickynotes/stickynotes_applet.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c
index 0cbe755..9f7dd9b 100644
--- a/stickynotes/stickynotes_applet.c
+++ b/stickynotes/stickynotes_applet.c
@@ -402,6 +402,9 @@ void stickynotes_applet_update_icon(StickyNotesApplet *applet)
        else
                pixbuf1 = gdk_pixbuf_scale_simple(stickynotes->icon_normal, size, size, GDK_INTERP_BILINEAR);
 
+       if (!pixbuf1)
+               return;
+
        /* Shift the icon if pressed */
        pixbuf2 = gdk_pixbuf_copy(pixbuf1);
        if (applet->pressed)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]