fix memory leak that widgets wouldn't be deleted

This commit is contained in:
Jinhao
2017-04-28 04:18:39 +08:00
parent 155cdab511
commit 9548b87f54
4 changed files with 27 additions and 15 deletions

View File

@@ -388,8 +388,7 @@ namespace nana
{
if(1 == ++(fc[ttf.string()]))
{
auto state = ::FcConfigAppFontAddFile(nullptr, reinterpret_cast<const FcChar8*>(ttf.string().c_str()));
state = 0;
::FcConfigAppFontAddFile(nullptr, reinterpret_cast<const FcChar8*>(ttf.string().c_str()));
}
}
else