xwayland: Handle selection source going away without crashing

This commit is contained in:
Kristian Høgsberg
2012-06-01 00:08:12 -04:00
parent a4b3d0ede7
commit 805667388b
3 changed files with 28 additions and 3 deletions
-1
View File
@@ -906,7 +906,6 @@ weston_wm_handle_event(int fd, uint32_t mask, void *data)
while (event = xcb_poll_for_event(wm->conn), event != NULL) {
if (weston_wm_handle_selection_event(wm, event)) {
fprintf(stderr, "handled by selection code\n");
free(event);
count++;
continue;