diff options
author | Benjamin Otte <otte@redhat.com> | 2012-03-31 03:35:48 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-07 13:01:25 +0200 |
commit | 7a7e2ed92b3427b71c8f2511440d3ff571b2a5d8 (patch) | |
tree | d6d7eca49d08aef340bc7997aa0416d30fce9595 /gtk/gtkcsscomputedvalues.c | |
parent | 246269faaceac8ec2b8bf9dd1c24251023a15c53 (diff) | |
download | gtk+-7a7e2ed92b3427b71c8f2511440d3ff571b2a5d8.tar.gz |
csscomputedvalues: Unref old value when setting new one
Diffstat (limited to 'gtk/gtkcsscomputedvalues.c')
-rw-r--r-- | gtk/gtkcsscomputedvalues.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcsscomputedvalues.c b/gtk/gtkcsscomputedvalues.c index 305ff4fd41..37ad20b236 100644 --- a/gtk/gtkcsscomputedvalues.c +++ b/gtk/gtkcsscomputedvalues.c @@ -194,6 +194,8 @@ _gtk_css_computed_values_set_value (GtkCssComputedValues *values, if (id <= values->values->len) g_ptr_array_set_size (values->values, id + 1); + if (g_ptr_array_index (values->values, id)) + _gtk_css_value_unref (g_ptr_array_index (values->values, id)); g_ptr_array_index (values->values, id) = _gtk_css_value_ref (value); if (section) |