Plug a memory leak in Xrandr code
This commit is contained in:
committed by
Matthias Clasen
parent
ac0ed81b6f
commit
5964109ef3
@ -736,7 +736,10 @@ init_randr13 (GdkScreen *screen)
|
|||||||
randr12_compat |= !g_strcmp0(output->name, "default");
|
randr12_compat |= !g_strcmp0(output->name, "default");
|
||||||
|
|
||||||
if (output->connection == RR_Disconnected)
|
if (output->connection == RR_Disconnected)
|
||||||
continue;
|
{
|
||||||
|
XRRFreeOutputInfo (output);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (output->crtc)
|
if (output->crtc)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user