commit | c9f8f8a7f46d3cc343f232441826a25e0e14347a | [log] [tgz] |
---|---|---|
author | cpaul@redhat.com <cpaul@redhat.com> | Tue Jan 05 11:18:30 2016 -0500 |
committer | Bryce Harrington <bryce@osg.samsung.com> | Wed Jan 13 14:44:13 2016 -0800 |
tree | 4452b79aaeb3679769ba9f5263a18c338cf8dcf3 | |
parent | 89324ce88820656a85f16e1c94791412d451b7ba [diff] |
compositor: create_data_source(): Fix potential crash on OOM 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 <cpaul@redhat.com> Reviewed-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>