Re: [PATCH weston] compositor: create_data_source(): Fix potential crash on OOM

2016-01-13 Thread Bryce Harrington
On Mon, Jan 11, 2016 at 09:23:01AM +0100, Marek Chalupa wrote: > Hi, > > Reviewed-by: Marek Chalupa > > (one small comment below) > > Cheers, > Marek > > On 01/05/2016 05:18 PM, Lyude wrote: > >Noticed this while working on primary selection, in the event we run out > >of memory when trying to

Re: [PATCH weston] compositor: create_data_source(): Fix potential crash on OOM

2016-01-11 Thread Marek Chalupa
Hi, Reviewed-by: Marek Chalupa (one small comment below) Cheers, Marek On 01/05/2016 05:18 PM, Lyude wrote: Noticed this while working on primary selection, in the event we run out of memory when trying to create a new data source, there's a chance we'll fail on wl_resource_create() and cras

[PATCH weston] compositor: create_data_source(): Fix potential crash on OOM

2016-01-05 Thread Lyude
Noticed this while working on primary selection, in the event we run out of memory when trying to create a new data source, there's a chance we'll fail on wl_resource_create() and crash from source->resource being set to NULL. Signed-off-by: Lyude --- src/data-device.c | 10 -- 1 file ch