Commit e9726248 authored by Thomas Wood's avatar Thomas Wood

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.
parent ce0675f1
......@@ -441,7 +441,7 @@ gdk_frame_clock_paint_idle (void *data)
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 */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment