Commit b5b99652 authored by Alexander Larsson's avatar Alexander Larsson

css: Remove any loaded resource in gtk_css_provider_reset

parent 610ea728
......@@ -1712,6 +1712,13 @@ gtk_css_provider_reset (GtkCssProvider *css_provider)
priv = css_provider->priv;
if (priv->resource)
{
g_resources_unregister (priv->resource);
g_resource_unref (priv->resource);
priv->resource = NULL;
}
g_hash_table_remove_all (priv->symbolic_colors);
for (i = 0; i < priv->rulesets->len; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment