[PATCH 4/5] winex11: Release memory on xrandr cleanup.

Alexandre Julliard julliard at winehq.org
Thu Jul 12 11:46:47 CDT 2012


Henri Verbeet <hverbeet at codeweavers.com> writes:

> diff --git a/dlls/winex11.drv/xrandr.c b/dlls/winex11.drv/xrandr.c
> index 83137a4..a8dccd4 100644
> --- a/dlls/winex11.drv/xrandr.c
> +++ b/dlls/winex11.drv/xrandr.c
> @@ -289,6 +289,12 @@ done:
>      wine_tsx11_unlock();
>  }
>  
> +void X11DRV_XRandR_Cleanup(void)
> +{
> +    HeapFree( GetProcessHeap(), 0, real_xrandr_rates_count );
> +    HeapFree( GetProcessHeap(), 0, real_xrandr_rates );
> +}

It's not worth adding complexity to free memory, in practice the
graphics driver is never going to be unloaded except at process exit.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list