d2d1: Properly free brush data buffer is created from.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2015-11-19 15:08:40 +03:00 committed by Alexandre Julliard
parent 6a7363b694
commit 39f2ed321d
1 changed files with 1 additions and 2 deletions

View File

@ -860,8 +860,7 @@ HRESULT d2d_brush_get_ps_cb(struct d2d_brush *brush, struct d2d_brush *opacity_b
HeapFree(GetProcessHeap(), 0, cb_data);
return E_NOTIMPL;
}
cb_data += brush_sizes[brush->type];
if (opacity_brush && !d2d_brush_fill_cb(opacity_brush, render_target, cb_data))
if (opacity_brush && !d2d_brush_fill_cb(opacity_brush, render_target, cb_data + brush_sizes[brush->type]))
{
HeapFree(GetProcessHeap(), 0, cb_data);
return E_NOTIMPL;