Zebediah Figura : wined3d: Fully initialize the allocator structure in wined3d_allocator_init().

Alexandre Julliard julliard at winehq.org
Mon Oct 18 16:16:29 CDT 2021


Module: wine
Branch: master
Commit: b344d1d0913fb7f87c72e7c4693587a78915abef
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b344d1d0913fb7f87c72e7c4693587a78915abef

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Sun Oct 17 15:08:30 2021 -0500

wined3d: Fully initialize the allocator structure in wined3d_allocator_init().

Allows the allocator to be uninitialized and reinitialized.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 47718c9f710..29326668e07 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -7432,5 +7432,7 @@ bool wined3d_allocator_init(struct wined3d_allocator *allocator,
         list_init(&allocator->pools[i].chunks);
     }
 
+    allocator->free = NULL;
+
     return true;
 }




More information about the wine-cvs mailing list