GNOME Bugzilla – Bug 622333
Crash in gdk_window_impl_quartz_begin_paint_region
Last modified: 2010-06-27 09:03:28 UTC
Created attachment 164261 [details] [review] Quit gdk_window_impl_quartz_begin_paint_region if gdk_region_get_rectangles finds no rectangles. When a theme engine attempts to draw a hidden element, gdk_window_impl_quartz_begin_paint_region can crash because it will attempt to dereference the rects array when there are no rects. I discovered this when trying to use a theme (MeiMac-Aqua, which uses the Mist engine) with an app that had been modified to use GtkOSXApplication (which puts the menubars on the Mac Menu, and therefore one hides the window's menubar). The attached patch prevents the crash.
Comment on attachment 164261 [details] [review] Quit gdk_window_impl_quartz_begin_paint_region if gdk_region_get_rectangles finds no rectangles. Looks good.
I actually already committed this patch locally in name of John. Will push this soonish (tonight/tomorrow). (Have a couple of other patches pending as well that first need a quick spin on Tiger).
Pushed on gtk-2-22: 093a867e51b383b5c1877415b410cc3c122c72da Pushed on master: 98d47b57bffd545ab32e656ab91740a89baac992