[gtk/matthiasc/for-master: 7/8] Avoid a crash in css font features values



commit 527a8048b6599990f53e0b29f501aa7ae5afc8f7
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 27 07:47:37 2020 -0500

    Avoid a crash in css font features values

 gtk/gtkcssfontfeaturesvalue.c | 4 +---
 1 file changed, 1 insertion(+), 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]