backends/x11: Don't leak XRRGetPanning result

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1728>
This commit is contained in:
Sebastian Keller 2021-02-11 15:52:28 +01:00 committed by Marge Bot
parent 0e396ee7bb
commit e77e454d34

View File

@ -271,6 +271,7 @@ meta_crtc_xrandr_new (MetaGpuXrandr *gpu_xrandr,
.height = xrandr_crtc->height,
};
}
XRRFreePanning (panning);
modes = meta_gpu_get_modes (gpu);
for (i = 0; i < (unsigned int) resources->nmode; i++)