compositor: free regions in wlsc_output_repaint()
Some of the local pixman region objects were not being properly destroyed before returning from the function. Destroy them, fixes some Valgrind errors. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
@@ -805,11 +805,14 @@ wlsc_output_repaint(struct wlsc_output *output)
|
|||||||
wlsc_surface_draw(es, output, &repaint);
|
wlsc_surface_draw(es, output, &repaint);
|
||||||
pixman_region32_subtract(&es->damage,
|
pixman_region32_subtract(&es->damage,
|
||||||
&es->damage, &output->region);
|
&es->damage, &output->region);
|
||||||
|
pixman_region32_fini(&repaint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ec->fade.spring.current > 0.001)
|
if (ec->fade.spring.current > 0.001)
|
||||||
fade_output(output, ec->fade.spring.current, &total_damage);
|
fade_output(output, ec->fade.spring.current, &total_damage);
|
||||||
|
|
||||||
|
pixman_region32_fini(&total_damage);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlsc_frame_callback {
|
struct wlsc_frame_callback {
|
||||||
|
|||||||
Reference in New Issue
Block a user