fix memory leak that widgets wouldn't be deleted
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user