When the device is booting with an attached external display, every
frame leaks a file descriptor until the display manager enables the
external display, resulting in hundreds of leaked descriptors. This
plugs the leak.
Change-Id: Ib7e2af3638dab28c2ed04c02ddf9c485edf2bb9d
contents->retireFenceFd = merged;
}
} else {
+ if (layer.acquireFenceFd >= 0) {
+ close(layer.acquireFenceFd);
+ layer.acquireFenceFd = -1;
+ }
hdmi_hide_layer(pdev, pdev->hdmi_layers[1]);
}
}