diff options
author | NRK <nrk@disroot.org> | 2023-08-12 00:24:33 +0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-08-13 19:57:55 +0000 |
commit | 331832f55df4d4c2bbf1231a6e519ef7a96aea8c (patch) | |
tree | 066c8134539a25a6b36664c57844f398293aec15 /video/out | |
parent | 5d2d7cde8efb14c6b752148e81881c2ce74c5870 (diff) | |
download | mpv-331832f55df4d4c2bbf1231a6e519ef7a96aea8c.tar.bz2 mpv-331832f55df4d4c2bbf1231a6e519ef7a96aea8c.tar.xz |
x11_common: drop unnecessary NULL check
similar to free(), XFree() is a no-op if argument is NULL
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/x11_common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 7ce974d5ce..7289b51c2f 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1426,9 +1426,7 @@ 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); + XFree(prop.value); } static void vo_x11_update_window_title(struct vo *vo) |