mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
glx: Fix for commit 2c86668694.
Ian suggested these changes in his review and I made them, but I pushed the old version of the patch.
This commit is contained in:
parent
83a782cd5e
commit
6624174c0a
1 changed files with 2 additions and 0 deletions
|
|
@ -207,6 +207,7 @@ __glXInitVertexArrayState(struct glx_context * gc)
|
|||
arrays->arrays = calloc(array_count, sizeof(struct array_state));
|
||||
|
||||
if (arrays->arrays == NULL) {
|
||||
state->array_state = NULL;
|
||||
free(arrays);
|
||||
__glXSetError(gc, GL_OUT_OF_MEMORY);
|
||||
return;
|
||||
|
|
@ -295,6 +296,7 @@ __glXInitVertexArrayState(struct glx_context * gc)
|
|||
* __GL_CLIENT_ATTRIB_STACK_DEPTH);
|
||||
|
||||
if (arrays->stack == NULL) {
|
||||
state->array_state = NULL;
|
||||
free(arrays->arrays);
|
||||
free(arrays);
|
||||
__glXSetError(gc, GL_OUT_OF_MEMORY);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue