diff options
Diffstat (limited to 'swaynag/nagbar.c')
-rw-r--r-- | swaynag/nagbar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/swaynag/nagbar.c b/swaynag/nagbar.c index 6647e8c2..a20a9095 100644 --- a/swaynag/nagbar.c +++ b/swaynag/nagbar.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include "list.h" | 8 | #include "list.h" |
9 | #include "swaynag/nagbar.h" | 9 | #include "swaynag/nagbar.h" |
10 | #include "swaynag/render.h" | 10 | #include "swaynag/render.h" |
11 | #include "swaynag/types.h" | ||
11 | #include "wlr-layer-shell-unstable-v1-client-protocol.h" | 12 | #include "wlr-layer-shell-unstable-v1-client-protocol.h" |
12 | 13 | ||
13 | static void nop() { | 14 | static void nop() { |
@@ -386,6 +387,10 @@ void nagbar_destroy(struct sway_nagbar *nagbar) { | |||
386 | free(nagbar->details.button_up.text); | 387 | free(nagbar->details.button_up.text); |
387 | free(nagbar->details.button_down.text); | 388 | free(nagbar->details.button_down.text); |
388 | 389 | ||
390 | if (nagbar->type) { | ||
391 | nagbar_type_free(nagbar->type); | ||
392 | } | ||
393 | |||
389 | if (nagbar->layer_surface) { | 394 | if (nagbar->layer_surface) { |
390 | zwlr_layer_surface_v1_destroy(nagbar->layer_surface); | 395 | zwlr_layer_surface_v1_destroy(nagbar->layer_surface); |
391 | } | 396 | } |