Skip to content
Snippets Groups Projects
Commit 39f2ed32 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard
Browse files

d2d1: Properly free brush data buffer is created from.

parent 6a7363b6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment