summaryrefslogtreecommitdiff
path: root/gtk/gtkcssselector.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-11-18 08:18:11 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-11-18 08:18:11 -0500
commita8531605db9c0564ff83fd869357ad5d910fb5b5 (patch)
treeb75440f399438f3a236a46f806ac6f32e1e90940 /gtk/gtkcssselector.c
parent997f0de4d501d4b674155a817350648fa3138430 (diff)
downloadgtk+-a8531605db9c0564ff83fd869357ad5d910fb5b5.tar.gz
Some more interning
This avoids more strdups at startup.
Diffstat (limited to 'gtk/gtkcssselector.c')
-rw-r--r--gtk/gtkcssselector.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index e80b4423e6..4fc9bb42a4 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -1218,8 +1218,7 @@ parse_simple_selector (GtkCssParser *parser,
name = _gtk_css_parser_try_ident (parser, FALSE);
if (name)
{
- selector = gtk_css_selector_new (&GTK_CSS_SELECTOR_NAME,
- selector);
+ selector = gtk_css_selector_new (&GTK_CSS_SELECTOR_NAME, selector);
selector->name.name = g_intern_string (name);
g_free (name);
parsed_something = TRUE;