diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-02 00:26:25 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-02 00:26:25 +0000 |
commit | 04e29603179d6f28ee6c83c4ff134879ead1549d (patch) | |
tree | 20320742030f0335b466e59f6891c3237809ae63 /skia/ext | |
parent | 7007668faea3bf52350d21d86a030cd6209ac5a9 (diff) | |
download | chromium_src-04e29603179d6f28ee6c83c4ff134879ead1549d.zip chromium_src-04e29603179d6f28ee6c83c4ff134879ead1549d.tar.gz chromium_src-04e29603179d6f28ee6c83c4ff134879ead1549d.tar.bz2 |
Linux: fix fd leak added in r25083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25132 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext')
-rw-r--r-- | skia/ext/SkFontHost_fontconfig.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/skia/ext/SkFontHost_fontconfig.cpp b/skia/ext/SkFontHost_fontconfig.cpp index d4726d7..44ad79f 100644 --- a/skia/ext/SkFontHost_fontconfig.cpp +++ b/skia/ext/SkFontHost_fontconfig.cpp @@ -245,6 +245,7 @@ class SkFileDescriptorStream : public SkStream { return; void* memory = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); + close(fd); if (memory == MAP_FAILED) return; |