textview: Fix memory handling

When cleaning up the text appearance struct, we forgot
to add the new strikethrough_rgba member to the copy
function.
This commit is contained in:
Matthias Clasen
2017-10-06 23:06:52 -04:00
parent 41cd4c812e
commit 5b8b892dd6

View File

@@ -1549,6 +1549,9 @@ gtk_text_attr_appearance_new (const GtkTextAppearance *appearance)
if (appearance->underline_rgba)
result->appearance.underline_rgba = gdk_rgba_copy (appearance->underline_rgba);
if (appearance->strikethrough_rgba)
result->appearance.strikethrough_rgba = gdk_rgba_copy (appearance->strikethrough_rgba);
return (PangoAttribute *)result;
}