diff options
author | Alexander Kojevnikov <alexander@kojevnikov.com> | 2010-03-14 20:41:47 +1100 |
---|---|---|
committer | Alexander Kojevnikov <alexander@kojevnikov.com> | 2010-03-14 20:41:47 +1100 |
commit | dea249e8a6532b69d9a0364c2a64a47e68a63267 (patch) | |
tree | 31a6ddf17a290b0a51de379a6500dd0c449cf8dc /tests | |
parent | ae843d60eec9fa1222df22d725004af29b20e0c3 (diff) |
[grid] Fix a memleak (bgo#612688)
* We don't really need a new Pango.Layout - skip its creation
* We don't need a new FontDescription copy either, let's just restore
its Size like we already do in Render()
What was really causing the leak is the assignment of the newly created
FontDescription copy to Layout.FontDescription. The setter creates yet
another copy behind the scenes, leaving our FD undisposed.
There is still a small leak in Measure(), it looks like
MeasureTextHeight() is responsible. Will investigate this later.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions