message: Fixes LinearImage memory leak
  LinearImage leaks memory if assigned to itself, this ensures the old LinearImage::SharedReference object will be deleted first
diff: @@ -45,7 +45,12 @@ LinearImage::LinearImage(const LinearImage& that) {
  }
  LinearImage& LinearImage::operator=(const LinearImage& that) {
  - mDataRef = that.mDataRef ? new SharedReference(*that.mDataRef) : nullptr;
  + auto newDataRef = that.mDataRef
  + ? new SharedReference(*that.mDataRef)
  + : nullptr;
  + delete mDataRef;
  + mDataRef = newDataRef;
  +
  mData = that.mData;
  mWidth = that.mWidth;
  mHeight = that.mHeight;
  