mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
gtktextlayout: use g_slice for GtkTextLineDisplay
This commit is contained in:
parent
359d8c9856
commit
1abf7618c0
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user