From: Matthias Clasen Date: Mon, 2 Apr 2018 21:45:48 +0000 (-0400) Subject: font button: Fix a crash X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~689 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ec66c32deffda6104ee8f1efc4ccd8839d703d9f;p=gtk4.git font button: Fix a crash Since we are now storing the language as a PangoLanguage, we must not free it anymore. --- diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index 6c06029bf8..21c244681e 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -1005,8 +1005,7 @@ response_cb (GtkDialog *dialog, priv->font_size = gtk_font_chooser_get_font_size (font_chooser); g_free (priv->font_features); priv->font_features = gtk_font_chooser_get_font_features (font_chooser); - g_free (priv->language); - priv->language = gtk_font_chooser_get_language (font_chooser); + priv->language = pango_language_from_string (gtk_font_chooser_get_language (font_chooser)); /* Set label font */ gtk_font_button_update_font_info (font_button);