Free layouts inline
This commit is contained in:
parent
0231fabbd3
commit
3b3ed0328e
@ -376,10 +376,6 @@ static GSList *create_layouts(cairo_t *c)
|
|||||||
return layouts;
|
return layouts;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void free_layouts(GSList *layouts)
|
|
||||||
{
|
|
||||||
g_slist_free_full(layouts, free_colored_layout);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int layout_get_height(struct colored_layout *cl)
|
static int layout_get_height(struct colored_layout *cl)
|
||||||
{
|
{
|
||||||
@ -637,7 +633,7 @@ void draw(void)
|
|||||||
x_display_surface(image_surface, win, &dim);
|
x_display_surface(image_surface, win, &dim);
|
||||||
|
|
||||||
cairo_surface_destroy(image_surface);
|
cairo_surface_destroy(image_surface);
|
||||||
free_layouts(layouts);
|
g_slist_free_full(layouts, free_colored_layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
void draw_deinit(void)
|
void draw_deinit(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user