From 73acbeee928ae485fb07513c03d9c431cf08f05c Mon Sep 17 00:00:00 2001 From: monsta Date: Sat, 13 Aug 2016 22:07:29 +0300 Subject: accessx-status: fix possible crash when updating layout --- accessx-status/applet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accessx-status/applet.c') diff --git a/accessx-status/applet.c b/accessx-status/applet.c index 65d1a74b..3ef16a57 100644 --- a/accessx-status/applet.c +++ b/accessx-status/applet.c @@ -698,7 +698,7 @@ static void accessx_status_applet_update(AccessxStatusApplet* sapplet, AccessxSt g_object_unref(pixbuf); } - if (notify_type & ACCESSX_STATUS_MOUSEKEYS) + if ((notify_type & ACCESSX_STATUS_MOUSEKEYS) && (event != NULL)) { GdkPixbuf* pixbuf = accessx_status_applet_mousekeys_image(sapplet, &event->state); gtk_image_set_from_pixbuf(GTK_IMAGE(sapplet->mousefoo), pixbuf); -- cgit v1.2.1