[gtk+] csscomputedvalues: plug a refleak



commit 3b7e390484384460ef0314a567a9022b2c518f09
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Oct 16 11:49:57 2012 -0400

    csscomputedvalues: plug a refleak
    
    _gtk_css_keyframes_compute() returns a reference to a GtkCssKeyframes,
    and _gtk_css_animation_new() takes another reference.

 gtk/gtkcsscomputedvalues.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcsscomputedvalues.c b/gtk/gtkcsscomputedvalues.c
index 94115a5..339be02 100644
--- a/gtk/gtkcsscomputedvalues.c
+++ b/gtk/gtkcsscomputedvalues.c
@@ -499,6 +499,7 @@ gtk_css_computed_values_create_css_animations (GtkCssComputedValues    *values,
                                               _gtk_css_play_state_value_get (_gtk_css_array_value_get_nth (play_states, i)),
                                               _gtk_css_fill_mode_value_get (_gtk_css_array_value_get_nth (fill_modes, i)),
                                               _gtk_css_number_value_get (_gtk_css_array_value_get_nth (iteration_counts, i), 100));
+          _gtk_css_keyframes_unref (keyframes);
         }
       values->animations = g_slist_prepend (values->animations, animation);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]