xwm: fix use after free
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Fri, 26 Dec 2014 16:10:35 +0000 (18:10 +0200)
committerBryce Harrington <bryce@osg.samsung.com>
Fri, 30 Jan 2015 01:09:29 +0000 (17:09 -0800)
commit9e1aeb86c230296bdbdefe65cfc84e90a907840b
tree5401b324ac43932eafdcb60ce2ee5412e659d0b8
parente82ba533e53190d596256724e1bf49042a839b67
xwm: fix use after free

Calling wl_event_source_remove() will free the event source later, so
reset the pointer to avoid calling it two times on the same pointer.
Fix a compositor crash when copying some text from weston terminal,
pasting it in the same terminal and hitting ctrl-u, while a X client
is running.
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
xwayland/selection.c