diff options
author | Aaron Watry <[email protected]> | 2013-12-18 14:40:49 -0600 |
---|---|---|
committer | Aaron Watry <[email protected]> | 2014-01-16 10:10:04 -0600 |
commit | ce3528896b37c7d8ef051780e29ea9588fada9da (patch) | |
tree | 5339a8fdf7f8efcfe094ca505abd609e83b70b21 /src/gallium/state_trackers | |
parent | 5ac3229f76f02453ae7e971d515b01fb56ad3fa5 (diff) |
st/dri: prevent leak of dri option default values
v2: Change comment style
CC: "10.0" <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_screen.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_screen.c b/src/gallium/state_trackers/dri/common/dri_screen.c index 7410dbeba59..b338f64b01b 100644 --- a/src/gallium/state_trackers/dri/common/dri_screen.c +++ b/src/gallium/state_trackers/dri/common/dri_screen.c @@ -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 |