From 3b22827e4f4ffa4dd7cd08437e5373f5495b48b3 Mon Sep 17 00:00:00 2001 From: dany Date: Fri, 21 Mar 2025 10:31:01 +0100 Subject: [PATCH] fix: unref css provider after remove it from style context --- src/shell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shell.c b/src/shell.c index 468b14d..640f148 100644 --- a/src/shell.c +++ b/src/shell.c @@ -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; }