diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-11 02:34:09 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-11 03:04:11 +0200 |
commit | df19c576c7e26fb71626f752de250f55ede0f7af (patch) | |
tree | fa98141b41db3e3177e7ff2c211983a806498485 /gtk2_ardour/audio_clock.cc | |
parent | 6b3d3e2f916a714d5804688605883caadcfd9db0 (diff) |
fix a bunch of memory leaks
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r-- | gtk2_ardour/audio_clock.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index d2c242735a..dcd626d287 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -260,12 +260,14 @@ AudioClock::set_colors () r = lrint ((r/255.0) * 65535.0); g = lrint ((g/255.0) * 65535.0); b = lrint ((b/255.0) * 65535.0); + delete foreground_attr; foreground_attr = new Pango::AttrColor (Pango::Attribute::create_attr_foreground (r, g, b)); UINT_TO_RGBA (editing_color, &r, &g, &b, &a); r = lrint ((r/255.0) * 65535.0); g = lrint ((g/255.0) * 65535.0); b = lrint ((b/255.0) * 65535.0); + delete editing_attr; editing_attr = new Pango::AttrColor (Pango::Attribute::create_attr_foreground (r, g, b)); normal_attributes.change (*foreground_attr); |