Merge pull request #72 from dareg/hotfix-1.1.2

Thank you for fixing this issue
This commit is contained in:
Jinhao 2015-08-23 17:04:49 +08:00
commit dfec7316b2

View File

@ -187,7 +187,7 @@ namespace detail
reinterpret_cast<XftChar8*>(const_cast<char*>(utf8str.c_str())), utf8str.size());
*/
auto fs = reinterpret_cast<XftFont*>(dw->font->handle);
std::unique_ptr<FT_UInt> glyphs_ptr(new FT_UInt[len]);
std::unique_ptr<FT_UInt[]> glyphs_ptr(new FT_UInt[len]);
auto glyphs = glyphs_ptr.get();
const auto endstr = str + len;
for(auto chr = str; chr != endstr; ++chr)