summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-10-06 23:06:52 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-10-06 23:06:52 -0400
commit5b8b892dd6983f5c0cd94cb60e4ec5c25a4fc7c8 (patch)
tree4c00362440cabef2382e3c0356f9343c70ca0e61 /gtk/gtktextlayout.c
parent41cd4c812eb78590a02446dd5e500dbc15e916fd (diff)
downloadgtk+-5b8b892dd6983f5c0cd94cb60e4ec5c25a4fc7c8.tar.gz
textview: Fix memory handling
When cleaning up the text appearance struct, we forgot to add the new strikethrough_rgba member to the copy function.
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r--gtk/gtktextlayout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 75c37a583b..564d1be8c8 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -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;
}