hardware/msm7k: Fix a leak of file descriptors

CRs-fixed: 297010

Change-Id: I62ac2ab3407cd91ec8c1b25f4ad00d33e7b34ad4
This commit is contained in:
Manas Abichandani 2011-07-26 16:52:21 -07:00 committed by Linux Build Service Account
parent 2bba57038f
commit 1d32df265b

View File

@ -1139,7 +1139,7 @@ int mapFrameBufferLocked(struct private_module_t* module)
int err;
size_t fbSize = roundUpToPageSize(finfo.line_length * info.yres_virtual);
module->framebuffer = new private_handle_t(dup(fd), fbSize,
module->framebuffer = new private_handle_t(fd, fbSize,
private_handle_t::PRIV_FLAGS_USES_PMEM);
module->numBuffers = info.yres_virtual / info.yres;