summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.c
diff options
context:
space:
mode:
authorSébastien Wilmet <swilmet@gnome.org>2014-07-19 14:34:53 +0200
committerSébastien Wilmet <swilmet@gnome.org>2014-07-20 12:26:01 +0200
commit9527205291d170c4d5c857daf63ef51e7981c32f (patch)
tree985332a43933221e553b91005a6ee904449b4f7b /gtk/gtktextlayout.c
parentb441d3a736e0efc916172cfeea538d063b507611 (diff)
downloadgtk+-9527205291d170c4d5c857daf63ef51e7981c32f.tar.gz
GtkTextView: use GSlice
GSlice is better for allocating structs. https://bugzilla.gnome.org/show_bug.cgi?id=733407
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r--gtk/gtktextlayout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 99909288f0..7dbb62e13b 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -964,7 +964,7 @@ gtk_text_layout_real_free_line_data (GtkTextLayout *layout,
{
gtk_text_layout_invalidate_cache (layout, line, FALSE);
- g_free (line_data);
+ g_slice_free (GtkTextLineData, line_data);
}
/**