1
0
Fork 0

output-xrand: Plug a memory leak

Fixes: 99d84ae1cc
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2608>
This commit is contained in:
Alessandro Bono 2022-09-02 10:21:04 +02:00 committed by Marge Bot
parent a9ae43ff43
commit db0f12135e

View file

@ -461,9 +461,15 @@ output_get_max_bpc_range_xrandr (Display *xdisplay,
atom);
meta_clutter_x11_untrap_x_errors ();
if (!property_info || property_info->num_values != 2)
if (!property_info)
return FALSE;
if (property_info->num_values != 2)
{
XFree (property_info);
return FALSE;
}
values = (long *) property_info->values;
if (min)
*min = values[0];