From ffc6d631d66a283da71591662a8bff508f8a50b2 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Sat, 18 Jun 2016 18:32:19 +0100 Subject: [PATCH] Bug 1280753: Call Close() on SVG-in-opentype content viewer, when tearing it down. r=smaug MozReview-Commit-ID: Jscvj1rvYCp --HG-- extra : rebase_source : 2f68057e9bda004b8d94ea8685d08170f55906d3 --- gfx/thebes/gfxSVGGlyphs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/thebes/gfxSVGGlyphs.cpp b/gfx/thebes/gfxSVGGlyphs.cpp index abd3733bba40..2c125e9b6914 100644 --- a/gfx/thebes/gfxSVGGlyphs.cpp +++ b/gfx/thebes/gfxSVGGlyphs.cpp @@ -313,6 +313,7 @@ gfxSVGGlyphsDocument::~gfxSVGGlyphsDocument() mPresShell->RemovePostRefreshObserver(this); } if (mViewer) { + mViewer->Close(nullptr); mViewer->Destroy(); } }