summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-10-07 18:47:31 -0700
committerEric Anholt <eric@anholt.net>2008-10-07 18:52:12 -0700
commit902727b7e3eb3c2c9bcddf1d55d3c95c73377cf3 (patch)
treeeb66f0b1056b1ac66d81edeba4a65ce2954b29e0 /src
parentc157cfc6376f7469ab272b18868183e5ff9ac754 (diff)
mesa: Pass the context to query object delete cb to avoid null dereference.
Diffstat (limited to 'src')
-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 6f084b6a4f..554e0b0d18 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa/main/queryobj.c
@@ -545,6 +545,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);
}