diff --git a/gfx/layers/composite/TextureHost.cpp b/gfx/layers/composite/TextureHost.cpp index dcf9278717c..1bde51fdf8b 100644 --- a/gfx/layers/composite/TextureHost.cpp +++ b/gfx/layers/composite/TextureHost.cpp @@ -640,7 +640,7 @@ BufferTextureHost::GetAsSurface() return nullptr; } } else { - RefPtr surf = + result = gfx::Factory::CreateWrappingDataSourceSurface(GetBuffer(), ImageDataSerializer::GetRGBStride(mDescriptor.get_RGBDescriptor()), mSize, mFormat);