Re: How to use Pango::Context?



It's a bug in Pango::Context::get_font_map(). It should get its own reference to the font map, but it doesn't. Until the bug has been fixed in pangomm, you can add a reference yourself.

auto fontMap = context->get_font_map();
fontMap->reference();  // Temporary bug fix

Note that when you start using a fixed version of pangomm, the call to fontMap->reference() will cause a memory leak.

Den 2022-02-21 kl. 16:12, skrev phosit--- via gtkmm-list:
does the error occur if you do windows.reserve(2) before the
emplace_back()s?
Yes
_______________________________________________


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]