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=a402d48f840f1d51eb46dc15a047589e2b8ca431;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 2d060300300..e3ba7b6ff74 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); }