diff --git a/content/media/gstreamer/GStreamerAllocator.cpp b/content/media/gstreamer/GStreamerAllocator.cpp index 4468267b5c4b..6a2a6ed1a261 100644 --- a/content/media/gstreamer/GStreamerAllocator.cpp +++ b/content/media/gstreamer/GStreamerAllocator.cpp @@ -60,7 +60,7 @@ moz_gfx_memory_reset(MozGfxMemory *mem) mem->image->Release(); ImageContainer* container = ((MozGfxMemoryAllocator*) mem->memory.allocator)->reader->GetImageContainer(); - mem->image = reinterpret_cast(container->CreateImage(ImageFormat::PLANAR_YCBCR).get()); + mem->image = reinterpret_cast(container->CreateImage(ImageFormat::PLANAR_YCBCR).take()); mem->data = mem->image->AllocateAndGetNewBuffer(mem->memory.size); }