data-device.c: Handle OOM in weston_data_source_send_offer()
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 6 Aug 2013 17:24:04 +0000 (10:24 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 6 Aug 2013 17:24:04 +0000 (10:24 -0700)
commit3c30f0f950a616df4c899c57839ef34946ead8b1
treecf6712c60b418f446244686ffca3453bb6cdcf27
parent09252d4b5eecf6068ce45039299dd904d0e6389e
data-device.c: Handle OOM in weston_data_source_send_offer()

If we fail to allocate the resource, clean up and return NULL.
src/data-device.c