nvk: fix dri options leak.
Noticed in valgrind.
Fixes: edb5229538 ("nvk: Hook up driconf for nvk_instance")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27712>
(cherry picked from commit f47858b8375f5abfba031b1a5ea9b5dbf122dbf0)
This commit is contained in:
parent
2bc85abbf2
commit
2e1ccf1c59
2 changed files with 4 additions and 1 deletions
|
|
@ -2044,7 +2044,7 @@
|
||||||
"description": "nvk: fix dri options leak.",
|
"description": "nvk: fix dri options leak.",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "edb52295387839b032d9c14bbf09994d4a3416d7",
|
"because_sha": "edb52295387839b032d9c14bbf09994d4a3416d7",
|
||||||
"notes": null
|
"notes": null
|
||||||
|
|
|
||||||
|
|
@ -155,6 +155,9 @@ nvk_DestroyInstance(VkInstance _instance,
|
||||||
if (!instance)
|
if (!instance)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
driDestroyOptionCache(&instance->dri_options);
|
||||||
|
driDestroyOptionInfo(&instance->available_dri_options);
|
||||||
|
|
||||||
vk_instance_finish(&instance->vk);
|
vk_instance_finish(&instance->vk);
|
||||||
vk_free(&instance->vk.alloc, instance);
|
vk_free(&instance->vk.alloc, instance);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue