Re: [PATCH weston 2/2] wayland-server: Avoid deferencing a NULL pointer in error case

2013-03-28 Thread Jason Ekstrand
Both patches in this series look good to me. --Jason Ekstrand On Mar 28, 2013 1:49 PM, "Rob Bradford" wrote: > From: Rob Bradford > > Reorder the error handling in the case that closure is NULL due to ENOMEM > to > ensure that we can safely call wl_closure_lookup_objects on the second > test. >

[PATCH weston 2/2] wayland-server: Avoid deferencing a NULL pointer in error case

2013-03-28 Thread Rob Bradford
From: Rob Bradford Reorder the error handling in the case that closure is NULL due to ENOMEM to ensure that we can safely call wl_closure_lookup_objects on the second test. Prior to this reordering the closure would be deferenced in the ENOMEM case due to the invocation of the second half of the