aboutsummaryrefslogtreecommitdiff
path: root/swaynag/swaynag.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaynag/swaynag.c')
-rw-r--r--swaynag/swaynag.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/swaynag/swaynag.c b/swaynag/swaynag.c
index 9b57d578..03ec0411 100644
--- a/swaynag/swaynag.c
+++ b/swaynag/swaynag.c
@@ -511,13 +511,8 @@ void swaynag_destroy(struct swaynag *swaynag) {
swaynag_seat_destroy(seat);
}
- if (&swaynag->buffers[0]) {
- destroy_buffer(&swaynag->buffers[0]);
- }
-
- if (&swaynag->buffers[1]) {
- destroy_buffer(&swaynag->buffers[1]);
- }
+ destroy_buffer(&swaynag->buffers[0]);
+ destroy_buffer(&swaynag->buffers[1]);
if (swaynag->outputs.prev || swaynag->outputs.next) {
struct swaynag_output *output, *temp;