From 4050abe2fa435403b531bb49da34ec5b623cbf37 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 27 Jul 2015 14:54:13 -0400 Subject: [PATCH] Plug a memory leak GtkCssProvider was using the wrong unref function for GtkCssKeyframe objects. Funnily, this didn't crash at all, the refcount was at the same place in the struct - it just didn't free all the memory, causing valgrind to complain. --- gtk/gtkcssprovider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index eb582bfc3f..f758cfca87 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -1586,7 +1586,7 @@ gtk_css_provider_init (GtkCssProvider *css_provider) (GDestroyNotify) _gtk_css_value_unref); priv->keyframes = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) g_free, - (GDestroyNotify) _gtk_css_value_unref); + (GDestroyNotify) _gtk_css_keyframes_unref); } static void