Adding if conditions before freeing res_class and res_name in applyrules
This commit is contained in:
2
dwm.c
2
dwm.c
@@ -569,7 +569,9 @@ applyrules(Client *c)
|
|||||||
#endif // SWITCHTAG_PATCH
|
#endif // SWITCHTAG_PATCH
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (ch.res_class)
|
||||||
XFree(ch.res_class);
|
XFree(ch.res_class);
|
||||||
|
if (ch.res_name)
|
||||||
XFree(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;
|
||||||
|
Reference in New Issue
Block a user