xwayland: fix clipboard related crash
authorGreg V <greg@unrelenting.technology>
Wed, 7 Nov 2018 21:24:15 +0000 (00:24 +0300)
committerDaniel Stone <daniels@collabora.com>
Sat, 16 Feb 2019 09:37:30 +0000 (09:37 +0000)
xwayland/selection.c

index e0eb3ffc27f11230ee0ec3ba48cf04c09805ebe4..bc7318af9ebcd582f1f8277903e40dd9908aa14f 100644 (file)
@@ -408,6 +408,7 @@ weston_wm_read_data_source(int fd, uint32_t mask, void *data)
                wm->property_source = NULL;
                close(fd);
                wl_array_release(&wm->source_data);
+               return 1;
        }
 
        weston_log("read %d (available %d, mask 0x%x) bytes: \"%.*s\"\n",