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

2012-11-27 Thread Kristian Høgsberg
On Mon, Nov 26, 2012 at 11:25:53PM +0100, Jonas Ådahl wrote: > Since wl_display_dispatch() 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 > wl_display_roundtrip() does an

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

2012-11-26 Thread Jonas Ådahl
Since wl_display_dispatch() 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 wl_display_roundtrip() does an early return and the callback later writes to the then out of scope sta