Skip to content

Commit

Permalink
Fix nwjs#2666: release image properly when create icon
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang authored and jwerle committed Nov 29, 2014
1 parent 9313322 commit f4a4457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nw_package.cc
Expand Up @@ -204,7 +204,7 @@ bool Package::GetImage(const FilePath& icon_path, gfx::Image* image) {
if (decoded->empty())
return false; // Unable to decode.

*image = gfx::Image::CreateFrom1xBitmap(*decoded.release());
*image = gfx::Image::CreateFrom1xBitmap(*decoded);
return true;
}

Expand Down

0 comments on commit f4a4457

Please sign in to comment.