diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 22:47:31 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 22:47:31 +0000 |
commit | 9a9712aa6811c21c6f79c73ab7fb2e5501081bcb (patch) | |
tree | b6a04384d2adbb4beada6c506effad710a3e353a /printing | |
parent | 109d31f08853a4aa5c64e3b52ad7d8bf1bce7196 (diff) | |
download | chromium_src-9a9712aa6811c21c6f79c73ab7fb2e5501081bcb.zip chromium_src-9a9712aa6811c21c6f79c73ab7fb2e5501081bcb.tar.gz chromium_src-9a9712aa6811c21c6f79c73ab7fb2e5501081bcb.tar.bz2 |
Linux: Fix early font free during printing.
The ownership model for this stuff (fonts, cairo canvas, etc.) is a bit brittle. Don't know how to improve it though.
BUG=23372
Review URL: http://codereview.chromium.org/270048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28619 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r-- | printing/pdf_ps_metafile_linux.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/printing/pdf_ps_metafile_linux.cc b/printing/pdf_ps_metafile_linux.cc index aa9a9d32..a3da6ee 100644 --- a/printing/pdf_ps_metafile_linux.cc +++ b/printing/pdf_ps_metafile_linux.cc @@ -14,6 +14,7 @@ #include "base/file_descriptor_posix.h" #include "base/file_util.h" #include "base/logging.h" +#include "skia/ext/vector_platform_device_linux.h" namespace { @@ -369,6 +370,7 @@ void PdfPsMetafile::CleanUpAll() { CleanUpSurface(&page_surface_); current_page_.clear(); all_pages_.clear(); + skia::VectorPlatformDevice::ClearFontCache(); } } // namespace printing |