fix: unref css provider after remove it from style context

This commit is contained in:
dany 2025-03-21 10:31:01 +01:00
parent 2c5338f4bf
commit 3b22827e4f

View File

@ -89,6 +89,7 @@ static void diya_shell_reload(DiyaShell* shell)
if(priv->css_provider)
{
gtk_style_context_remove_provider_for_display(gdk_display_get_default(), GTK_STYLE_PROVIDER(priv->css_provider));
g_object_unref(priv->css_provider);
priv->css_provider = NULL;
}