diff options
author | Chia-I Wu <[email protected]> | 2010-06-30 17:10:10 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-06-30 18:32:48 +0800 |
commit | 6717a313f26e42a7864f46f499637462a7cc3d57 (patch) | |
tree | 10e7bb1337b0f99f18dd8e36e0f9074c6d78744e /src/egl/main/egldisplay.c | |
parent | 106466783f986f532d3ee7af3a70f693c610ea04 (diff) |
egl: Store configs in a dynamic array.
Diffstat (limited to 'src/egl/main/egldisplay.c')
-rw-r--r-- | src/egl/main/egldisplay.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index 9980356c4aa..31ff090484c 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -179,15 +179,9 @@ _eglReleaseDisplayResources(_EGLDriver *drv, _EGLDisplay *display) void _eglCleanupDisplay(_EGLDisplay *disp) { - EGLint i; - if (disp->Configs) { - for (i = 0; i < disp->NumConfigs; i++) - free(disp->Configs[i]); - free(disp->Configs); + _eglDestroyArray(disp->Configs, free); disp->Configs = NULL; - disp->NumConfigs = 0; - disp->MaxConfigs = 0; } /* XXX incomplete */ |