x11_common: drop unnecessary NULL check

similar to free(), XFree() is a no-op if argument is NULL
This commit is contained in:
NRK 2023-08-12 00:24:33 +06:00 committed by Dudemanguy
parent 5d2d7cde8e
commit 331832f55d
1 changed files with 1 additions and 3 deletions

View File

@ -1426,8 +1426,6 @@ static void vo_x11_set_property_string(struct vo *vo, Atom name, const char *t)
// can do this correctly.
vo_x11_set_property_utf8(vo, name, t);
}
if (prop.value)
XFree(prop.value);
}