12 Jul
2012
12 Jul
'12
4:46 p.m.
Henri Verbeet <hverbeet(a)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(a)winehq.org