summaryrefslogtreecommitdiff
path: root/gtk/gtkcssfontfeaturesvalue.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-27 07:47:37 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-27 14:30:58 -0500
commit527a8048b6599990f53e0b29f501aa7ae5afc8f7 (patch)
tree7e0d43830f0a4b4cdbc98b9b2d2d92624a0414ae /gtk/gtkcssfontfeaturesvalue.c
parent0c1f93cd7cb31ead600ee35a37ad932d6f7c674d (diff)
downloadgtk+-527a8048b6599990f53e0b29f501aa7ae5afc8f7.tar.gz
Avoid a crash in css font features values
Diffstat (limited to 'gtk/gtkcssfontfeaturesvalue.c')
-rw-r--r--gtk/gtkcssfontfeaturesvalue.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkcssfontfeaturesvalue.c b/gtk/gtkcssfontfeaturesvalue.c
index 9e1b0ad267..c5f79eff89 100644
--- a/gtk/gtkcssfontfeaturesvalue.c
+++ b/gtk/gtkcssfontfeaturesvalue.c
@@ -170,9 +170,7 @@ gtk_css_font_features_value_new_empty (void)
GtkCssValue *result;
result = _gtk_css_value_new (GtkCssValue, &GTK_CSS_VALUE_FONT_FEATURES);
- result->features = g_hash_table_new_full (g_str_hash, g_str_equal,
- g_free,
- (GDestroyNotify) _gtk_css_value_unref);
+ result->features = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
result->is_computed = TRUE;
return result;