Re: [Mesa-dev] [PATCH] wayland: Don't cancel a roundtrip when any event is received

2013-01-03 Thread Kristian Høgsberg
On Tue, Dec 25, 2012 at 01:01:08PM +0100, Jonas Ådahl wrote: > Since wl_display_dispatch_queue() returns the number of processed events > or -1 on error, only cancel the roundtrip if an -1 is returned. > > This also fixes a potential memory corruption bug happening when the > roundtrip does an ear

[Mesa-dev] [PATCH] wayland: Don't cancel a roundtrip when any event is received

2012-12-25 Thread Jonas Ådahl
Since wl_display_dispatch_queue() returns the number of processed events or -1 on error, only cancel the roundtrip if an -1 is returned. This also fixes a potential memory corruption bug happening when the roundtrip does an early return and the callback later writes to the then out of scope stack