xrandr: fixed memory leak

This commit is contained in:
Deve 2014-08-16 16:02:22 +02:00
parent a9bd12bfab
commit 3e3a27252a

View File

@ -1629,9 +1629,12 @@ video::IVideoModeList* CIrrDeviceLinux::getVideoModeList()
if (res->outputs[i] == primary_id)
{
output_id = res->outputs[i];
crtc_x = crtc->x;
crtc_y = crtc->y;
output_id = res->outputs[i];
XRRFreeCrtcInfo(crtc);
XRRFreeOutputInfo(output);
break;
}