diff options
author | Ignacio Casal Quinteiro <icq@gnome.org> | 2011-12-25 18:13:51 +0100 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2011-12-25 18:13:51 +0100 |
commit | 1abf7618c0e18ea56a463e4fb3c9119546f29dec (patch) | |
tree | cf996c1664ac151dc58a8b2a5ec222c83df4ad7f /gtk/gtktextlayout.c | |
parent | 359d8c98565f21ca22aeb45c5a5c8ed0a120320c (diff) | |
download | gtk+-1abf7618c0e18ea56a463e4fb3c9119546f29dec.tar.gz |
gtktextlayout: use g_slice for GtkTextLineDisplay
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r-- | gtk/gtktextlayout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index d3baf1944f..8916aef63d 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -2143,7 +2143,7 @@ gtk_text_layout_get_line_display (GtkTextLayout *layout, DV (g_print ("creating one line display cache (%s)\n", G_STRLOC)); - display = g_new0 (GtkTextLineDisplay, 1); + display = g_slice_new0 (GtkTextLineDisplay); display->size_only = size_only; display->line = line; @@ -2486,7 +2486,7 @@ gtk_text_layout_free_line_display (GtkTextLayout *layout, if (display->pg_bg_rgba) gdk_rgba_free (display->pg_bg_rgba); - g_free (display); + g_slice_free (GtkTextLineDisplay, display); } } |