diff options
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r-- | gtk/gtktextlayout.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index f19ab618d2..7d48a3d059 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -1408,7 +1408,12 @@ set_para_values (GtkTextLayout *layout, if (style->pg_bg_color) display->pg_bg_color = gdk_color_copy (style->pg_bg_color); else - display->pg_bg_color = NULL; + display->pg_bg_color = NULL; + + if (style->pg_bg_rgba) + display->pg_bg_rgba = gdk_rgba_copy (style->pg_bg_rgba); + else + display->pg_bg_rgba = NULL; } static PangoAttribute * @@ -2533,6 +2538,9 @@ gtk_text_layout_free_line_display (GtkTextLayout *layout, if (display->pg_bg_color) gdk_color_free (display->pg_bg_color); + if (display->pg_bg_rgba) + gdk_rgba_free (display->pg_bg_rgba); + g_free (display); } } |