[gtk+] gtktextlayout: use g_slice for GtkTextLineDisplay
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtktextlayout: use g_slice for GtkTextLineDisplay
- Date: Sun, 25 Dec 2011 17:20:10 +0000 (UTC)
commit 1abf7618c0e18ea56a463e4fb3c9119546f29dec
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Dec 25 18:13:51 2011 +0100
gtktextlayout: use g_slice for GtkTextLineDisplay
gtk/gtktextlayout.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index d3baf19..8916aef 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]