Commit c1ecf862 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite: Make a deep copy of family name string (Valgrind).

parent fdbdad03
......@@ -703,6 +703,12 @@ static struct layout_range *alloc_layout_range_from(struct layout_range *from, c
*range = *from;
range->range = *r;
range->fontfamily = heap_strdupW(from->fontfamily);
if (!range->fontfamily) {
heap_free(range);
return NULL;
}
/* update refcounts */
if (range->object)
IDWriteInlineObject_AddRef(range->object);
......
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