summaryrefslogtreecommitdiff
path: root/tests/print-editor.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-03-10 05:52:29 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-03-10 05:52:29 +0000
commit05e78f980589f1f609fd985b686f4c04c97eddd4 (patch)
treeba491c33dd9cf84bb0ab037edb86d456871155b9 /tests/print-editor.c
parente643f1ee8932daca35b8839255770c188bdd81aa (diff)
downloadgtk+-05e78f980589f1f609fd985b686f4c04c97eddd4.tar.gz
Plug some leaks.
2007-03-10 Matthias Clasen <mclasen@redhat.com> * tests/print-editor.c: Plug some leaks. svn path=/trunk/; revision=17452
Diffstat (limited to 'tests/print-editor.c')
-rw-r--r--tests/print-editor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/print-editor.c b/tests/print-editor.c
index 3a539f8651..237c34a45e 100644
--- a/tests/print-editor.c
+++ b/tests/print-editor.c
@@ -363,6 +363,8 @@ draw_page (GtkPrintOperation *operation,
}
while (i < end &&
pango_layout_iter_next_line (iter));
+
+ pango_layout_iter_free (iter);
}
static void
@@ -635,6 +637,8 @@ print_done (GtkPrintOperation *op,
g_free (print_data->text);
g_free (print_data->font);
+ g_list_free (print_data->page_breaks);
+ g_object_unref (print_data->layout);
g_free (print_data);
if (!gtk_print_operation_is_finished (op))