From 03faa0a7eefa72e5616b0280ca64718524fcc2a6 Mon Sep 17 00:00:00 2001 From: dareg Date: Sat, 22 Aug 2015 23:20:32 +0200 Subject: [PATCH] Fix missing array declaration in unique_ptr Which was causing a wrong deletion of the array --- source/paint/detail/native_paint_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/paint/detail/native_paint_interface.cpp b/source/paint/detail/native_paint_interface.cpp index 153ac5f0..476fc5c4 100644 --- a/source/paint/detail/native_paint_interface.cpp +++ b/source/paint/detail/native_paint_interface.cpp @@ -187,7 +187,7 @@ namespace detail reinterpret_cast(const_cast(utf8str.c_str())), utf8str.size()); */ auto fs = reinterpret_cast(dw->font->handle); - std::unique_ptr glyphs_ptr(new FT_UInt[len]); + std::unique_ptr glyphs_ptr(new FT_UInt[len]); auto glyphs = glyphs_ptr.get(); const auto endstr = str + len; for(auto chr = str; chr != endstr; ++chr)