ImageSkiaRep doesn't release memory

This commit is contained in:
Cheng Zhao 2015-08-05 15:49:37 +08:00
parent b8d364f11e
commit 2f04f76e69

View file

@ -78,7 +78,7 @@ bool AddImageSkiaRep(gfx::ImageSkia* image,
if (!decoded)
return false;
image->AddRepresentation(gfx::ImageSkiaRep(*decoded.release(), scale_factor));
image->AddRepresentation(gfx::ImageSkiaRep(*decoded, scale_factor));
return true;
}