Index: core/fpdfapi/render/cpdf_imagecacheentry.cpp |
diff --git a/core/fpdfapi/render/cpdf_imagecacheentry.cpp b/core/fpdfapi/render/cpdf_imagecacheentry.cpp |
index 93ec162a7c2f377a8e97c84d25e36527da8f2278..932d281f98e993467762c4d6833361f366a134da 100644 |
--- a/core/fpdfapi/render/cpdf_imagecacheentry.cpp |
+++ b/core/fpdfapi/render/cpdf_imagecacheentry.cpp |
@@ -34,7 +34,7 @@ CPDF_ImageCacheEntry::~CPDF_ImageCacheEntry() {} |
void CPDF_ImageCacheEntry::Reset(const CFX_DIBitmap* pBitmap) { |
m_pCachedBitmap.reset(); |
if (pBitmap) |
- m_pCachedBitmap = pdfium::WrapUnique<CFX_DIBSource>(pBitmap->Clone()); |
+ m_pCachedBitmap = pBitmap->Clone(); |
CalcSize(); |
} |