diff options
author | Lin Ma <lin.ma@sun.com> | 2010-05-02 11:58:28 -0400 |
---|---|---|
committer | Thomas Thurman <tthurman@gnome.org> | 2010-05-02 11:58:28 -0400 |
commit | bc14af3aaa0cd4c51d4558209adf2fee9878b071 (patch) | |
tree | 20ba3a03e97569f254a2dbdf7f00e5bd260c74de | |
parent | b272c4ca7f3a784d011eea5c3fd348011f8558b3 (diff) | |
download | metacity-bc14af3aaa0cd4c51d4558209adf2fee9878b071.tar.gz |
fix memory leak in theme optimisation
-rw-r--r-- | src/ui/theme.c | 2 |
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; } |