diff --git a/gfx/layers/client/ClientImageLayer.cpp b/gfx/layers/client/ClientImageLayer.cpp index b48525b44cec..d3a9434afa9b 100644 --- a/gfx/layers/client/ClientImageLayer.cpp +++ b/gfx/layers/client/ClientImageLayer.cpp @@ -103,8 +103,7 @@ protected: return mImageClientTypeContainer; } - RefPtr surface; - AutoLockImage autoLock(mContainer, &surface); + AutoLockImage autoLock(mContainer); #ifdef MOZ_WIDGET_GONK // gralloc buffer needs CompositableType::BUFFER_IMAGE_BUFFERED to prevent