summaryrefslogtreecommitdiff
path: root/mate-volume-control/src
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2015-03-23 13:57:38 +0100
committerStefano Karapetsas <[email protected]>2015-03-23 13:57:38 +0100
commite9c1cd00889e66d249766e0fc3219e19c3722bdc (patch)
tree5bfcd85e71ec1fdfc3b4e1dfe68c3dd444d44966 /mate-volume-control/src
parentc2a83bb51b890a08d07ca71867573019aa33e283 (diff)
parent2bd4846e3469cf483eb2f026852caa7578addf94 (diff)
downloadmate-media-e9c1cd00889e66d249766e0fc3219e19c3722bdc.tar.bz2
mate-media-e9c1cd00889e66d249766e0fc3219e19c3722bdc.tar.xz
Merge pull request #53 from monsta/patch-3
[1.8] 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);