diff options
| author | bakkeby <[email protected]> | 2020-01-27 09:13:13 +0100 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-01-27 09:13:13 +0100 |
| commit | 3567e59e200e6fc926cc54a28db2f07e62c92f4f (patch) | |
| tree | 8b1888211d64e15e926873693013d730fd8ed8f1 | |
| parent | 84b0361b65ab17d1b167ad9dbfcab0524ef4bfde (diff) | |
| download | dwm-flexipatch-3567e59e200e6fc926cc54a28db2f07e62c92f4f.tar.gz dwm-flexipatch-3567e59e200e6fc926cc54a28db2f07e62c92f4f.zip | |
[dwm][PATCH] remove NULL guards for XFree
| -rw-r--r-- | dwm.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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); } } |
