Merge pull request #2423 from atom/fix-release-leak
Fix memory leak when creating NativeImage
This commit is contained in:
commit
5a2f94f415
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue