From e97262489c70a12460ea4b938008a470ab0d7581 Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Tue, 26 Feb 2013 11:06:45 +0000 Subject: [PATCH] gdk: prevent NULL pointer access when debugging is enabled If no updates, redraws, or repaints have been scheduled for this frame, we will skip immediately to RESUME_EVENTS, and no GdkFrameTimings will be created. https://bugzilla.gnome.org/show_bug.cgi?id=694732 --- gdk/gdkframeclockidle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/gdkframeclockidle.c b/gdk/gdkframeclockidle.c index 2d4947c4df..5901c7f6ca 100644 --- a/gdk/gdkframeclockidle.c +++ b/gdk/gdkframeclockidle.c @@ -441,7 +441,7 @@ gdk_frame_clock_paint_idle (void *data) #ifdef G_ENABLE_DEBUG if ((_gdk_debug_flags & GDK_DEBUG_FRAMES) != 0) { - if (timings->complete) + if (timings && timings->complete) _gdk_frame_clock_debug_print_timings (clock, timings); } #endif /* G_ENABLE_DEBUG */