Commit c4becb85 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

winemac: Fix leaks in macdrv_surface_destroy.

parent 43f60885
......@@ -208,6 +208,9 @@ static void macdrv_surface_destroy(struct window_surface *window_surface)
struct macdrv_window_surface *surface = get_mac_surface(window_surface);
TRACE("freeing %p bits %p\n", surface, surface->bits);
if (surface->region) DeleteObject(surface->region);
if (surface->drawn) DeleteObject(surface->drawn);
HeapFree(GetProcessHeap(), 0, surface->blit_data);
HeapFree(GetProcessHeap(), 0, surface->bits);
pthread_mutex_destroy(&surface->mutex);
HeapFree(GetProcessHeap(), 0, surface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment