diff --git a/sys/va/gstvaallocator.c b/sys/va/gstvaallocator.c index 7c162946b1..0f53200c72 100644 --- a/sys/va/gstvaallocator.c +++ b/sys/va/gstvaallocator.c @@ -1389,7 +1389,6 @@ _va_copy (GstMemory * mem, gssize offset, gssize size) copy = gst_va_allocator_alloc (mem->allocator); if (!copy) { GST_WARNING ("failed to allocate new memory"); - gst_memory_unmap (mem, &sinfo); return NULL; } } else {