summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2022-10-10 09:13:10 +0200
committerFurkan Sahin <furkan-dev@proton.me>2022-10-10 09:13:10 +0200
commit763f076b1022d837651d38a2837aac2b7dd205d4 (patch)
tree2247cb4097afc7e994ffb0c0dbf1471a1e892d17
parent20ed7b7bcbad8cac69546c11bb63be460345a9b6 (diff)
Fix leaks in criteria_destroy()
-rw-r--r--sway/criteria.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/criteria.c b/sway/criteria.c
index 97cf667e..6f97994b 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -96,7 +96,9 @@ void criteria_destroy(struct criteria *criteria) {
pattern_destroy(criteria->window_role);
#endif
pattern_destroy(criteria->con_mark);
+ pattern_destroy(criteria->workspace);
free(criteria->workspace);
+ free(criteria->target);
free(criteria->cmdlist);
free(criteria->raw);
free(criteria);