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

This commit is contained in:
Nikolay Sivov 2015-03-11 20:46:11 +03:00 committed by Alexandre Julliard
parent fdbdad03f3
commit c1ecf862a4
1 changed files with 6 additions and 0 deletions

View File

@ -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);