mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
xprops: Free counter_list_from_results() return value with g_free()
counter_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. https://gitlab.gnome.org/GNOME/mutter/merge_requests/786
This commit is contained in:
parent
e2330617ac
commit
488991b0f6
@ -1109,7 +1109,7 @@ free_value (MetaPropValue *value)
|
|||||||
case META_PROP_VALUE_SYNC_COUNTER:
|
case META_PROP_VALUE_SYNC_COUNTER:
|
||||||
break;
|
break;
|
||||||
case META_PROP_VALUE_SYNC_COUNTER_LIST:
|
case META_PROP_VALUE_SYNC_COUNTER_LIST:
|
||||||
free (value->v.xcounter_list.counters);
|
g_free (value->v.xcounter_list.counters);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user