mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
[dwm][PATCH] remove NULL guards for XFree
This commit is contained in:
parent
84b0361b65
commit
3567e59e20
9
dwm.c
9
dwm.c
@ -547,10 +547,8 @@ applyrules(Client *c)
|
|||||||
#endif // SWITCHTAG_PATCH
|
#endif // SWITCHTAG_PATCH
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ch.res_class)
|
XFree(ch.res_class);
|
||||||
XFree(ch.res_class);
|
XFree(ch.res_name);
|
||||||
if (ch.res_name)
|
|
||||||
XFree(ch.res_name);
|
|
||||||
#if EMPTYVIEW_PATCH
|
#if EMPTYVIEW_PATCH
|
||||||
if(c->tags & TAGMASK) c->tags = c->tags & TAGMASK;
|
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];
|
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))
|
&& (wa.map_state == IsViewable || getstate(wins[i]) == IconicState))
|
||||||
manage(wins[i], &wa);
|
manage(wins[i], &wa);
|
||||||
}
|
}
|
||||||
if (wins)
|
XFree(wins);
|
||||||
XFree(wins);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user