mesa: Pass the context to query object delete cb to avoid null dereference.

This commit is contained in:
Eric Anholt
2008-10-07 18:47:31 -07:00
parent c157cfc637
commit 902727b7e3
+1 -1
View File
@@ -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);
}