diff --git a/gfx/2d/DrawTargetSkia.cpp b/gfx/2d/DrawTargetSkia.cpp index ce836778428d..157cb109b5fe 100644 --- a/gfx/2d/DrawTargetSkia.cpp +++ b/gfx/2d/DrawTargetSkia.cpp @@ -273,7 +273,7 @@ static sk_sp GetSkImageForSurface(SourceSurface* aSurface, releaseProc = ReleaseTemporarySurface; } - DataSourceSurface* surf = aSurface->GetDataSurface().take(); + DataSourceSurface* surf = dataSurface.forget().take(); // Skia doesn't support RGBX surfaces so ensure that the alpha value is opaque // white.