summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Ma <lin.ma@sun.com>2010-05-02 11:58:28 -0400
committerThomas Thurman <tthurman@gnome.org>2010-05-02 11:58:28 -0400
commitbc14af3aaa0cd4c51d4558209adf2fee9878b071 (patch)
tree20ba3a03e97569f254a2dbdf7f00e5bd260c74de
parentb272c4ca7f3a784d011eea5c3fd348011f8558b3 (diff)
downloadmetacity-bc14af3aaa0cd4c51d4558209adf2fee9878b071.tar.gz
fix memory leak in theme optimisation
-rw-r--r--src/ui/theme.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 175eb5b7..7e4859d4 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -2559,11 +2559,13 @@ meta_theme_replace_constants (MetaTheme *theme,
{
if (meta_theme_lookup_int_constant (theme, t->d.v.name, &ival))
{
+ g_free (t->d.v.name);
t->type = POS_TOKEN_INT;
t->d.i.val = ival;
}
else if (meta_theme_lookup_float_constant (theme, t->d.v.name, &dval))
{
+ g_free (t->d.v.name);
t->type = POS_TOKEN_DOUBLE;
t->d.d.val = dval;
}