[Mesa-dev] [PATCH 2/3] glx: Destroy dri2Hash on DRI2 display destruction.

Brian Paul brianp at vmware.com
Thu Apr 7 17:44:25 PDT 2011


On 04/07/2011 03:50 PM, Henri Verbeet wrote:
> ---
>   src/glx/dri2_glx.c |    3 +++
>   1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
> index 2c28bc2..fc0237a 100644
> --- a/src/glx/dri2_glx.c
> +++ b/src/glx/dri2_glx.c
> @@ -945,6 +945,9 @@ handle_error:
>   static void
>   dri2DestroyDisplay(__GLXDRIdisplay * dpy)
>   {
> +   struct dri2_display *pdp = (struct dri2_display *) dpy;
> +
> +   __glxHashDestroy(pdp->dri2Hash);
>      Xfree(dpy);
>   }
>

Looks good.

-Brian


More information about the mesa-dev mailing list