From 0e4bac872c0cc3df1cafc23f1fa42e3b939d4866 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Tue, 27 Aug 2013 23:46:22 -0700 Subject: [PATCH] NULL check on default keymap Ensure that Quartz's default keymap is not accessed before it is created. --- gdk/quartz/gdkkeys-quartz.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/quartz/gdkkeys-quartz.c b/gdk/quartz/gdkkeys-quartz.c index 8ecf79e199..d2b51105a1 100644 --- a/gdk/quartz/gdkkeys-quartz.c +++ b/gdk/quartz/gdkkeys-quartz.c @@ -492,7 +492,8 @@ update_keymap (void) p[0] = known_numeric_keys[i].keypad_keyval; } - g_signal_emit_by_name (default_keymap, "keys-changed"); + if (default_keymap != NULL) + g_signal_emit_by_name (default_keymap, "keys-changed"); } static PangoDirection