summaryrefslogtreecommitdiff
path: root/mate-volume-control/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2014-11-02 00:09:14 +0300
committermonsta <[email protected]>2014-11-02 00:09:14 +0300
commit2bd4846e3469cf483eb2f026852caa7578addf94 (patch)
tree5f4fb6b98659f238c20fcbd03d366023370198cc /mate-volume-control/src
parentcededb5aec8b2dc6aea20c712555729cdb59317d (diff)
downloadmate-media-2bd4846e3469cf483eb2f026852caa7578addf94.tar.bz2
mate-media-2bd4846e3469cf483eb2f026852caa7578addf94.tar.xz
don't leak memory once more
Diffstat (limited to 'mate-volume-control/src')
-rw-r--r--mate-volume-control/src/gvc-channel-bar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mate-volume-control/src/gvc-channel-bar.c b/mate-volume-control/src/gvc-channel-bar.c
index 3d21119..04f41e7 100644
--- a/mate-volume-control/src/gvc-channel-bar.c
+++ b/mate-volume-control/src/gvc-channel-bar.c
@@ -614,6 +614,7 @@ gvc_channel_bar_set_is_amplified (GvcChannelBar *bar, gboolean amplified)
GTK_POS_BOTTOM, str);
/* Only show 100% if it's higher than the base volume */
if (bar->priv->base_volume < ADJUSTMENT_MAX_NORMAL) {
+ g_free (str);
str = g_strdup_printf ("<small>%s</small>", C_("volume", "100%"));
gtk_scale_add_mark (GTK_SCALE (bar->priv->scale), ADJUSTMENT_MAX_NORMAL,
GTK_POS_BOTTOM, str);