xwm: Fix fd leak in weston_wm_send_data()
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Sep 2013 05:32:50 +0000 (22:32 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Sep 2013 05:32:50 +0000 (22:32 -0700)
commit73bdc0ce85583f65632d4de4b167295dbb06ee6d
tree8edaae7482dbb4bf0a5e2605e5750e06280d9f8f
parent3f7fcf83f6b1c9004aa20c936f10de8118d8ed8e
xwm: Fix fd leak in weston_wm_send_data()

The call to source->send(source, mime_type, p[1]); dups the fd, and we have
to close p[1] to not leak it.
src/xwayland/selection.c