aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-11-12 11:24:58 +0100
committermarha <marha@users.sourceforge.net>2013-11-12 11:24:58 +0100
commit3893ee9f6b12465239b63d08763bd9ba0bd329e5 (patch)
tree42173a04f11aab2cf10657179545725a87834b00
parent698a69fedac48209ff538d76e9aed935814a1652 (diff)
downloadvcxsrv-3893ee9f6b12465239b63d08763bd9ba0bd329e5.tar.gz
vcxsrv-3893ee9f6b12465239b63d08763bd9ba0bd329e5.tar.bz2
vcxsrv-3893ee9f6b12465239b63d08763bd9ba0bd329e5.zip
Solved problem of freeing invalid pointer
-rw-r--r--mesalib/src/mapi/glapi/glapi_priv.h11
-rw-r--r--mesalib/src/mesa/main/context.c4
2 files changed, 2 insertions, 13 deletions
diff --git a/mesalib/src/mapi/glapi/glapi_priv.h b/mesalib/src/mapi/glapi/glapi_priv.h
index 92925faac..5b894d8f6 100644
--- a/mesalib/src/mapi/glapi/glapi_priv.h
+++ b/mesalib/src/mapi/glapi/glapi_priv.h
@@ -100,15 +100,4 @@ get_entrypoint_address(unsigned int functionOffset);
#endif
-/**
- * Number of extension functions which we can dynamically add at runtime.
- *
- * Number of extension functions is also subject to the size of backing exec
- * mem we allocate. For the common case of dispatch stubs with size 16 bytes,
- * the two limits will be hit simultaneously. For larger dispatch function
- * sizes, MAX_EXTENSION_FUNCS is effectively reduced.
- */
-#define MAX_EXTENSION_FUNCS 256
-
-
#endif
diff --git a/mesalib/src/mesa/main/context.c b/mesalib/src/mesa/main/context.c
index d005d2370..75a3cbab1 100644
--- a/mesalib/src/mesa/main/context.c
+++ b/mesalib/src/mesa/main/context.c
@@ -1102,7 +1102,7 @@ _mesa_initialize_context(struct gl_context *ctx,
fail:
_mesa_reference_shared_state(ctx, &ctx->Shared, NULL);
free(ctx->BeginEnd);
- free(ctx->Exec);
+ free(ctx->OutsideBeginEnd);
free(ctx->Save);
return GL_FALSE;
}
@@ -1202,7 +1202,7 @@ _mesa_free_context_data( struct gl_context *ctx )
/* free dispatch tables */
free(ctx->BeginEnd);
- free(ctx->Exec);
+ free(ctx->OutsideBeginEnd);
free(ctx->Save);
/* Shared context state (display lists, textures, etc) */