From 80cf01c2717961d3403470446b3d2c4c16b81322 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 24 Sep 2010 22:09:37 +0200 Subject: [PATCH] GtkCssProvider: unset filename on load_from_data() --- gtk/gtkcssprovider.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index de28e26553..fc07bf37b4 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -2112,6 +2112,9 @@ gtk_css_provider_load_from_data (GtkCssProvider *css_provider, priv->scanner->input_name = "-"; g_scanner_input_text (priv->scanner, data, (guint) length); + g_free (priv->filename); + priv->filename = NULL; + parse_stylesheet (css_provider); return TRUE;