Commit 6086a606 authored by Keith Packard's avatar Keith Packard Committed by Peter Hutterer

xf8CrtcSetModeTransform: free adjusted_mode name too

The adjusted mode was freed, but any name allocated for that was leaked.
Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 08810782
......@@ -384,7 +384,9 @@ done:
crtc->transformPresent = saved_transform_present;
}
free(adjusted_mode);
if (adjusted_mode->name)
xfree(adjusted_mode->name);
xfree(adjusted_mode);
if (didLock)
crtc->funcs->unlock (crtc);
......
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