Skip to content
Snippets Groups Projects
Commit 2733a9c7 authored by Mike Blumenkrantz's avatar Mike Blumenkrantz :lifter: Committed by Dylan Baker
Browse files

util/set: stop leaking u32 key sets which pass a mem ctx


Fixes: 10a76824 ("util: add _mesa_set_create_u32_keys where keys are not pointers")

Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
Part-of: <mesa/mesa!9810>
(cherry picked from commit 5ecad3cb)
parent 3260a85b
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,7 @@
"description": "util/set: stop leaking u32 key sets which pass a mem ctx",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "10a7682413785a0b3667ab077971cd132f43281b"
},
......@@ -165,7 +165,7 @@ key_u32_equals(const void *a, const void *b)
struct set *
_mesa_set_create_u32_keys(void *mem_ctx)
{
return _mesa_set_create(NULL, key_u32_hash, key_u32_equals);
return _mesa_set_create(mem_ctx, key_u32_hash, key_u32_equals);
}
struct set *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment