summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexander Kojevnikov <alexander@kojevnikov.com>2010-03-14 20:41:47 +1100
committerAlexander Kojevnikov <alexander@kojevnikov.com>2010-03-14 20:41:47 +1100
commitdea249e8a6532b69d9a0364c2a64a47e68a63267 (patch)
tree31a6ddf17a290b0a51de379a6500dd0c449cf8dc /tests
parentae843d60eec9fa1222df22d725004af29b20e0c3 (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