xrandr: fixed memory leak
This commit is contained in:
parent
a9bd12bfab
commit
3e3a27252a
@ -1629,9 +1629,12 @@ video::IVideoModeList* CIrrDeviceLinux::getVideoModeList()
|
|||||||
|
|
||||||
if (res->outputs[i] == primary_id)
|
if (res->outputs[i] == primary_id)
|
||||||
{
|
{
|
||||||
output_id = res->outputs[i];
|
|
||||||
crtc_x = crtc->x;
|
crtc_x = crtc->x;
|
||||||
crtc_y = crtc->y;
|
crtc_y = crtc->y;
|
||||||
|
output_id = res->outputs[i];
|
||||||
|
|
||||||
|
XRRFreeCrtcInfo(crtc);
|
||||||
|
XRRFreeOutputInfo(output);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user