mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Fix memory leaks in swaybar
This commit is contained in:
parent
de79fee777
commit
cd5694fdb5
2 changed files with 7 additions and 3 deletions
|
|
@ -94,6 +94,9 @@ static void destroy_buffer(struct buffer *buffer) {
|
|||
if (buffer->surface) {
|
||||
cairo_surface_destroy(buffer->surface);
|
||||
}
|
||||
if (buffer->pango) {
|
||||
g_object_unref(buffer->pango);
|
||||
}
|
||||
memset(buffer, 0, sizeof(struct buffer));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue