diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-18 08:18:11 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-18 08:18:11 -0500 |
commit | a8531605db9c0564ff83fd869357ad5d910fb5b5 (patch) | |
tree | b75440f399438f3a236a46f806ac6f32e1e90940 /gtk/gtkcssselector.c | |
parent | 997f0de4d501d4b674155a817350648fa3138430 (diff) | |
download | gtk+-a8531605db9c0564ff83fd869357ad5d910fb5b5.tar.gz |
Some more interning
This avoids more strdups at startup.
Diffstat (limited to 'gtk/gtkcssselector.c')
-rw-r--r-- | gtk/gtkcssselector.c | 3 |
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 (>K_CSS_SELECTOR_NAME, - selector); + selector = gtk_css_selector_new (>K_CSS_SELECTOR_NAME, selector); selector->name.name = g_intern_string (name); g_free (name); parsed_something = TRUE; |