Chromium Code Reviews| Index: printing/emf_win.cc |
| diff --git a/printing/emf_win.cc b/printing/emf_win.cc |
| index d9472f9cc3fcf6c332d3dd3bf5f778670a3ef0fb..b6c9b4fc6d1c39e4b9a0f321de7e06d710e28b60 100644 |
| --- a/printing/emf_win.cc |
| +++ b/printing/emf_win.cc |
| @@ -169,9 +169,14 @@ Emf::Emf() : emf_(NULL), hdc_(NULL), page_count_(0) { |
| } |
| Emf::~Emf() { |
| + Close(); |
| +} |
| + |
| +void Emf::Close() { |
| DCHECK(!hdc_); |
| if (emf_) |
| DeleteEnhMetaFile(emf_); |
| + emf_ = NULL; |
| } |
| bool Emf::InitToFile(const base::FilePath& metafile_path) { |