zink: free modifiers

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31320>
This commit is contained in:
Dave Airlie 2024-09-04 09:24:03 -04:00 committed by Marge Bot
parent f332128ccf
commit 890e7555d4

View file

@ -250,6 +250,7 @@ zink_resource_destroy(struct pipe_screen *pscreen,
}
/* no need to do anything for the caches, these objects own the resource lifetimes */
free(res->modifiers);
zink_resource_object_reference(screen, &res->obj, NULL);
threaded_resource_deinit(pres);
FREE_CL(res);