Commit c937dd5b authored by Hans de Goede's avatar Hans de Goede Committed by Jonas Ådahl

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.

parent 26b76ee9
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment