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.
This commit is contained in:
Matthias Clasen 2015-07-27 14:54:13 -04:00
parent 048d710d67
commit 4050abe2fa

View File

@ -1586,7 +1586,7 @@ gtk_css_provider_init (GtkCssProvider *css_provider)
(GDestroyNotify) _gtk_css_value_unref); (GDestroyNotify) _gtk_css_value_unref);
priv->keyframes = g_hash_table_new_full (g_str_hash, g_str_equal, priv->keyframes = g_hash_table_new_full (g_str_hash, g_str_equal,
(GDestroyNotify) g_free, (GDestroyNotify) g_free,
(GDestroyNotify) _gtk_css_value_unref); (GDestroyNotify) _gtk_css_keyframes_unref);
} }
static void static void