mirror of https://github.com/yshui/picom.git
atom: fix memory leak
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
9bc44fb776
commit
08c5303c52
|
@ -1,3 +1,6 @@
|
|||
#pragma once
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <xcb/xcb.h>
|
||||
|
||||
#include "meta.h"
|
||||
|
@ -48,4 +51,5 @@ static inline xcb_atom_t get_atom(struct atom *a, const char *key) {
|
|||
|
||||
static inline void destroy_atoms(struct atom *a) {
|
||||
cache_free(a->c);
|
||||
free(a);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue