diff --git a/atom/common/api/atom_api_native_image.cc b/atom/common/api/atom_api_native_image.cc index fe3ba33412bb..a8f865c63ea6 100644 --- a/atom/common/api/atom_api_native_image.cc +++ b/atom/common/api/atom_api_native_image.cc @@ -456,7 +456,7 @@ void NativeImage::AddRepresentation(const mate::Dictionary& options) { // Re-initialize image when first representation is added to an empty image if (skia_rep_added && IsEmpty()) { gfx::Image image(image_skia); - image_.SwapRepresentations(&image); + image_ = std::move(image); } }