diff --git a/src/atom.h b/src/atom.h index 56525e74..69a5e5cd 100644 --- a/src/atom.h +++ b/src/atom.h @@ -1,3 +1,6 @@ +#pragma once +#include + #include #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); }