compositor: Fix a couple of region leaks
This commit is contained in:
@@ -774,7 +774,6 @@ wlsc_output_repaint(struct wlsc_output *output)
|
|||||||
pixman_region32_subtract(&clip, &clip, ®ion);
|
pixman_region32_subtract(&clip, &clip, ®ion);
|
||||||
pixman_region32_fini(®ion);
|
pixman_region32_fini(®ion);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pixman_region32_subtract(&ec->damage, &ec->damage, &output->region);
|
pixman_region32_subtract(&ec->damage, &ec->damage, &output->region);
|
||||||
@@ -783,6 +782,9 @@ wlsc_output_repaint(struct wlsc_output *output)
|
|||||||
&output->previous_damage);
|
&output->previous_damage);
|
||||||
pixman_region32_copy(&output->previous_damage, &new_damage);
|
pixman_region32_copy(&output->previous_damage, &new_damage);
|
||||||
|
|
||||||
|
pixman_region32_fini(&clip);
|
||||||
|
pixman_region32_fini(&new_damage);
|
||||||
|
|
||||||
device = (struct wlsc_input_device *) ec->input_device;
|
device = (struct wlsc_input_device *) ec->input_device;
|
||||||
if (ec->focus && ec->fade.spring.current < 0.001) {
|
if (ec->focus && ec->fade.spring.current < 0.001) {
|
||||||
if (!wl_list_empty(&device->sprite->link)) {
|
if (!wl_list_empty(&device->sprite->link)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user