Commit 39f2ed32 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

d2d1: Properly free brush data buffer is created from.

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