diff options
Diffstat (limited to 'src/glx/dri_common.c')
-rw-r--r-- | src/glx/dri_common.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index b1d9f320210..796654a65d0 100644 --- a/src/glx/dri_common.c +++ b/src/glx/dri_common.c @@ -336,6 +336,16 @@ driConvertConfigs(const __DRIcoreExtension * core, return head.next; } +_X_HIDDEN void +driDestroyConfigs(const __DRIconfig **configs) +{ + int i; + + for (i = 0; configs[i]; i++) + free((__DRIconfig *) configs[i]); + free(configs); +} + /* Bind extensions common to DRI1 and DRI2 */ _X_HIDDEN void driBindCommonExtensions(__GLXscreenConfigs *psc, |