common.h: remove cxfree

Apparently XFree does take NULL.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-05-06 01:41:36 +01:00
parent 939f2fb602
commit a409913c5f
7 changed files with 10 additions and 20 deletions

View File

@ -310,10 +310,10 @@ int win_get_name(session_t *ps, struct managed_win *w) {
!nstr || !strlst) {
if (strlst)
XFreeStringList(strlst);
cxfree(text_prop.value);
XFree(text_prop.value);
return -1;
}
cxfree(text_prop.value);
XFree(text_prop.value);
}
int ret = 0;