mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 08:24:09 +00:00
output-xrand: Plug a memory leak
Fixes: 99d84ae1cc8f027a35c32d266cef48758daaff6d Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2608>
This commit is contained in:
parent
a9ae43ff43
commit
db0f12135e
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user