summaryrefslogtreecommitdiff
path: root/libs/canvas/text.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-04-04 18:45:27 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-04-04 18:45:27 -0400
commit19bd6419157119b976393a0c5966b4be4c962119 (patch)
treebf27f7ea6402f39a0f3744ed6b298d91ed7f7c0e /libs/canvas/text.cc
parentaaea166135ace01709f7e0be64f40be80f4107ec (diff)
commit immediately post linking
Diffstat (limited to 'libs/canvas/text.cc')
-rw-r--r--libs/canvas/text.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/canvas/text.cc b/libs/canvas/text.cc
index 541a5f7fc0..feb88e1996 100644
--- a/libs/canvas/text.cc
+++ b/libs/canvas/text.cc
@@ -16,6 +16,11 @@ Text::Text (Group* parent)
}
+Text::~Text ()
+{
+ delete _font_description;
+}
+
void
Text::set (string const & text)
{
@@ -97,11 +102,11 @@ Text::set_alignment (Pango::Alignment alignment)
}
void
-Text::set_font_description (Pango::FontDescription* font_description)
+Text::set_font_description (Pango::FontDescription font_description)
{
begin_change ();
- _font_description = font_description;
+ _font_description = new Pango::FontDescription (font_description);
_bounding_box_dirty = true;
end_change ();