[PATCH 1/3] wined3d: Move the uploads array in wined3d_deferred_context_record_command_list().
hverbeet at gmail.com
Thu Jul 8 08:31:12 CDT 2021
On Wed, 7 Jul 2021 at 18:40, Zebediah Figura <zfigura at codeweavers.com> wrote:
> @@ -3725,4 +3720,14 @@ HRESULT CDECL wined3d_deferred_context_record_command_list(struct wined3d_device
> + heap_free(object->uploads);
> + heap_free(object->resources);
> + heap_free(object->data);
> + heap_free(object);
> + return E_OUTOFMEMORY;
The separate labels are somewhat superfluous here. Because "object" is
allocated with heap_alloc_zero(), when e.g. the "object->data"
allocation were to fail, "object->resources" and "object->uploads"
would be NULL, and there should be no issue calling heap_free() on
More information about the wine-devel