]> khamidou — GitHub mirrors - electron.git/commitdiff
ImageSkiaRep doesn't release memory
authorCheng Zhao <zcbenz@gmail.com>
Wed, 5 Aug 2015 07:49:37 +0000 (15:49 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 5 Aug 2015 07:49:37 +0000 (15:49 +0800)
atom/common/api/atom_api_native_image.cc

index 7819e314178c43c60d480cc83826b7ea09e36c97..40a73a7de3f7317f9cee9f98b3c5696dbd416fb6 100644 (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;
 }