Fix missing call to destroy library in embedder test.
authorTom Sepez <tsepez@chromium.org>
Fri, 16 Jan 2015 17:43:49 +0000 (09:43 -0800)
committerTom Sepez <tsepez@chromium.org>
Fri, 16 Jan 2015 17:43:49 +0000 (09:43 -0800)
This was somehow lost along the way to creating embedder tests.  Presumably
this silently leaks in origin/master, but triggers an assert under XFA. Fixing
this on master is a pre-requisite for merging all the embedder test code onto
XFA.

TBR=jam@chromium.org

Review URL: https://codereview.chromium.org/856773003

testing/embedder_test.cpp

index e823347..74d4f25 100644 (file)
@@ -195,6 +195,7 @@ void EmbedderTest::SetUp() {
 void EmbedderTest::TearDown() {
   FPDF_CloseDocument(document_);
   FPDFAvail_Destroy(avail_);
+  FPDF_DestroyLibrary();
   if (loader_) {
     delete loader_;
   }