forked from AuroraMiddleware/gtk
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:
parent
048d710d67
commit
4050abe2fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user