diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-01-06 23:26:24 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-01-06 23:26:24 -0500 |
commit | 908d1669037b921520b942b1224f3f3eddb7c604 (patch) | |
tree | 88e1d1647cf9d18eb1b8bb3c19526478a34b8dc6 | |
parent | 24a1ea536bb56b58ead345a1be8be5fa8123afc4 (diff) |
trace-view: Free pango layout
The pango layout that is created for determining size is never
freed. Free it!
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-view.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/trace-view.c b/trace-view.c index 899b3b3..2f12037 100644 --- a/trace-view.c +++ b/trace-view.c | |||
@@ -146,6 +146,7 @@ void trace_view_data_func(GtkTreeViewColumn *column, GtkCellRenderer *renderer, | |||
146 | gtk_cell_renderer_get_padding(renderer, &x_pad, NULL); | 146 | gtk_cell_renderer_get_padding(renderer, &x_pad, NULL); |
147 | /* +10 to avoid another adjustment for one char */ | 147 | /* +10 to avoid another adjustment for one char */ |
148 | new_w += 2*x_pad + 10; | 148 | new_w += 2*x_pad + 10; |
149 | g_object_unref(playout); | ||
149 | 150 | ||
150 | if (new_w > gtk_tree_view_column_get_width(column)) | 151 | if (new_w > gtk_tree_view_column_get_width(column)) |
151 | gtk_tree_view_column_set_fixed_width(column, new_w); | 152 | gtk_tree_view_column_set_fixed_width(column, new_w); |