xprops: Use meta_XFree instead of XFree in validate_or_free_results()

Use meta_XFree instead of XFree, letting meta_XFree do the NULL
checks for us.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/786
This commit is contained in:
Hans de Goede 2019-09-09 16:01:20 +02:00 committed by Jonas Ådahl
parent 26b76ee95d
commit c937dd5ba3

View File

@ -165,12 +165,9 @@ validate_or_free_results (GetPropertyResults *results,
results->format, (int) results->n_items,
title, res_class, res_name);
if (type_name)
XFree (type_name);
if (expected_name)
XFree (expected_name);
if (prop_name)
XFree (prop_name);
meta_XFree (type_name);
meta_XFree (expected_name);
meta_XFree (prop_name);
if (results->prop)
{