Merge pull request #2423 from atom/fix-release-leak

Fix memory leak when creating NativeImage
This commit is contained in:
Cheng Zhao 2015-08-05 15:55:52 +08:00
commit 5a2f94f415

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;
}