Plug some leaks

svn path=/branches/gtk-2-10/; revision=17451
This commit is contained in:
Matthias Clasen
2007-03-10 05:51:24 +00:00
parent 0b92a6f503
commit f96e2457d2
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
2007-03-10 Matthias Clasen <mclasen@redhat.com>
* tests/print-editor.c: Plug some leaks.
2007-03-09 Matthias Clasen <mclasen@redhat.com>
Merge from trunk:

View File

@@ -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))