From: Brian Date: Mon, 5 Nov 2007 17:16:28 +0000 (-0700) Subject: add missing free() in intelDestroyContext X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a95fe87350ed504cdf47dea2331f679db1ba3b4;p=mesa.git add missing free() in intelDestroyContext --- diff --git a/src/mesa/drivers/dri/intel_winsys/intel_context.c b/src/mesa/drivers/dri/intel_winsys/intel_context.c index 565e377669f..9e6f95abb0e 100644 --- a/src/mesa/drivers/dri/intel_winsys/intel_context.c +++ b/src/mesa/drivers/dri/intel_winsys/intel_context.c @@ -153,7 +153,7 @@ intelCreateContext(const __GLcontextModes * mesaVis, } } - intel->st = st_create_context2(pipe, mesaVis, NULL); + intel->st = st_create_context2(pipe, mesaVis, NULL); intel->st->ctx->DriverCtx = intel; /* hope to get rid of this... */ return GL_TRUE; @@ -183,6 +183,7 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv) } st_destroy_context2(intel->st); + free(intel); } }