summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-01-27 09:13:13 +0100
committerbakkeby <[email protected]>2020-01-27 09:13:13 +0100
commit3567e59e200e6fc926cc54a28db2f07e62c92f4f (patch)
tree8b1888211d64e15e926873693013d730fd8ed8f1
parent84b0361b65ab17d1b167ad9dbfcab0524ef4bfde (diff)
downloaddwm-flexipatch-3567e59e200e6fc926cc54a28db2f07e62c92f4f.tar.gz
dwm-flexipatch-3567e59e200e6fc926cc54a28db2f07e62c92f4f.zip
[dwm][PATCH] remove NULL guards for XFree
-rw-r--r--dwm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/dwm.c b/dwm.c
index f82a8b1..aed2943 100644
--- a/dwm.c
+++ b/dwm.c
@@ -547,10 +547,8 @@ applyrules(Client *c)
#endif // SWITCHTAG_PATCH
}
}
- if (ch.res_class)
- XFree(ch.res_class);
- if (ch.res_name)
- XFree(ch.res_name);
+ XFree(ch.res_class);
+ XFree(ch.res_name);
#if EMPTYVIEW_PATCH
if(c->tags & TAGMASK) c->tags = c->tags & TAGMASK;
else if(c->mon->tagset[c->mon->seltags]) c->tags = c->mon->tagset[c->mon->seltags];
@@ -2596,8 +2594,7 @@ scan(void)
&& (wa.map_state == IsViewable || getstate(wins[i]) == IconicState))
manage(wins[i], &wa);
}
- if (wins)
- XFree(wins);
+ XFree(wins);
}
}