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:
parent
26b76ee95d
commit
c937dd5ba3
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user