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
This commit is contained in:
Daniel Holbert 2016-06-18 18:32:19 +01:00
parent d792ea11f1
commit ffc6d631d6

View File

@ -313,6 +313,7 @@ gfxSVGGlyphsDocument::~gfxSVGGlyphsDocument()
mPresShell->RemovePostRefreshObserver(this);
}
if (mViewer) {
mViewer->Close(nullptr);
mViewer->Destroy();
}
}