Bug 1210560 - Followup 2: Fix UniquePtr usage issue. r=bustage on a CLOSED TREE
authorBas Schouten <bschouten@mozilla.com>
Wed, 11 Nov 2015 17:09:56 +0100
changeset 308302 3f97905378fd6a24425c2974bd98b51fdc7b89b9
parent 308301 265f46e1ee7b7d570c77760736f346eda11b8478
child 308303 f35d1107fe2eabc3128c9430724fa730c3336fd5
push id7450
push userahalberstadt@mozilla.com
push dateWed, 11 Nov 2015 20:09:05 +0000
reviewersbustage
bugs1210560
milestone45.0a1
Bug 1210560 - Followup 2: Fix UniquePtr usage issue. r=bustage on a CLOSED TREE
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -2327,17 +2327,17 @@ nsWindow::UpdateAlpha(SourceSurface* aSo
     // We need to create our own buffer to force the stride to match the
     // expected stride.
     int32_t stride = GetAlignedStride<4>(BytesPerPixel(SurfaceFormat::A8) *
                                          aBoundsRect.width);
     int32_t bufferSize = stride * aBoundsRect.height;
     auto imageBuffer = MakeUniqueFallible<uint8_t[]>(bufferSize);
     {
         RefPtr<DrawTarget> drawTarget = gfxPlatform::GetPlatform()->
-            CreateDrawTargetForData(imageBuffer, aBoundsRect.Size(),
+            CreateDrawTargetForData(imageBuffer.get(), aBoundsRect.Size(),
                                     stride, SurfaceFormat::A8);
 
         if (drawTarget) {
             drawTarget->DrawSurface(aSourceSurface, Rect(aBoundsRect.x, aBoundsRect.y, aBoundsRect.width, aBoundsRect.height),
                                     Rect(0, 0, aSourceSurface->GetSize().width, aSourceSurface->GetSize().height),
                                     DrawSurfaceOptions(Filter::POINT), DrawOptions(1.0f, CompositionOp::OP_SOURCE));
         }
     }