summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-10-07 18:47:31 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-12-18 09:47:49 -0700
commita402d48f840f1d51eb46dc15a047589e2b8ca431 (patch)
tree6263060a3c6d7caccf06b79b44f74e60194ad2f2
parent92dc8ffa719276fe536abf4dcf7874cf12588f60 (diff)
mesa: Pass the context to query object delete cb to avoid null dereference.
-rw-r--r--src/mesa/main/queryobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index 2d06030030..e3ba7b6ff7 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa/main/queryobj.c
@@ -546,6 +546,6 @@ delete_queryobj_cb(GLuint id, void *data, void *userData)
void
_mesa_free_query_data(GLcontext *ctx)
{
- _mesa_HashDeleteAll(ctx->Query.QueryObjects, delete_queryobj_cb, NULL);
+ _mesa_HashDeleteAll(ctx->Query.QueryObjects, delete_queryobj_cb, ctx);
_mesa_DeleteHashTable(ctx->Query.QueryObjects);
}