diff --git a/src/font_engine_freetype.cpp b/src/font_engine_freetype.cpp index 754a106dd..2ec9301f3 100644 --- a/src/font_engine_freetype.cpp +++ b/src/font_engine_freetype.cpp @@ -30,6 +30,7 @@ // boost #include #include +#include #include // icu @@ -178,7 +179,7 @@ face_ptr freetype_engine::create_face(std::string const& family_name) &face); if (!error) { - return face_ptr (new font_face(face)); + return boost::make_shared(face); } } return face_ptr();