selection: primary unset: don’t free text twice

This commit is contained in:
Daniel Eklöf 2020-09-17 20:02:38 +02:00
parent 2e7102c956
commit dd18710bb7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -705,7 +705,6 @@ selection_primary_unset(struct seat *seat)
zwp_primary_selection_device_v1_set_selection(
seat->primary_selection_device, NULL, primary->serial);
zwp_primary_selection_source_v1_destroy(primary->data_source);
free(primary->text);
primary->data_source = NULL;
primary->serial = 0;