compositor: Fix a couple of region leaks

dev
Kristian Høgsberg 14 years ago
parent b8a983395d
commit 53df1d8a6b
  1. 4
      compositor/compositor.c

@ -774,7 +774,6 @@ wlsc_output_repaint(struct wlsc_output *output)
pixman_region32_subtract(&clip, &clip, &region);
pixman_region32_fini(&region);
}
}
pixman_region32_subtract(&ec->damage, &ec->damage, &output->region);
@ -783,6 +782,9 @@ wlsc_output_repaint(struct wlsc_output *output)
&output->previous_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;
if (ec->focus && ec->fade.spring.current < 0.001) {
if (!wl_list_empty(&device->sprite->link)) {

Loading…
Cancel
Save