From e65752f30bc30f3f1cdb77ac2e511af033b7d1bb Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Sun, 9 May 2021 15:08:59 -0700 Subject: [PATCH] Image move operator fix --- src/images/image.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/images/image.cpp b/src/images/image.cpp index a628108..e08da42 100644 --- a/src/images/image.cpp +++ b/src/images/image.cpp @@ -125,6 +125,8 @@ Image::Image(Image&& src) noexcept Image& Image::operator=(Image&& src) noexcept { + dispose(); + width = src.width; height = src.height; pixels = src.pixels;