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

xprops: Free atom_list_from_results() return value with g_free()

atom_list_from_results directly passes through the results->prop
pointer which is g_malloc memory, so we should free the buffer it
returns with g_free.

!786
parent c937dd5b
......@@ -1092,7 +1092,7 @@ free_value (MetaPropValue *value)
case META_PROP_VALUE_WINDOW:
break;
case META_PROP_VALUE_ATOM_LIST:
free (value->v.atom_list.atoms);
g_free (value->v.atom_list.atoms);
break;
case META_PROP_VALUE_TEXT_PROPERTY:
free (value->v.str);
......
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