From: Eric Anholt Date: Wed, 8 Oct 2008 01:47:31 +0000 (-0700) Subject: mesa: Pass the context to query object delete cb to avoid null dereference. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=902727b7e3eb3c2c9bcddf1d55d3c95c73377cf3;p=mesa.git mesa: Pass the context to query object delete cb to avoid null dereference. --- diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index 6f084b6a4f1..554e0b0d181 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); }