Skip to content
Snippets Groups Projects
Commit b6464413 authored by Aaron Watry's avatar Aaron Watry Committed by Carl Worth
Browse files

st/dri: prevent leak of dri option default values


v2: Change comment style

CC: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
(cherry picked from commit ce352889)
parent 0ec1ae90
No related merge requests found
......@@ -360,6 +360,12 @@ dri_destroy_option_cache(struct dri_screen * screen)
}
free(screen->optionCache.values);
/* Default values are copied to screen->optionCache->values in
* initOptionCache. The info field, however, is a pointer copy, so don't free
* that twice.
*/
free(screen->optionCacheDefaults.values);
}
void
......
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