Unset priv->platform_data and priv->free_platform_data to prevent

2007-05-15  Torsten Schoenfeld  <kaffeetisch@gmx.de>

	* gtk/gtkprintoperation.c (pdf_end_run): Unset priv->platform_data and
	priv->free_platform_data to prevent gtk_print_operation_finalize()
	from freeing the cairo surface a second time.

svn path=/trunk/; revision=17851
This commit is contained in:
Torsten Schoenfeld 2007-05-15 17:57:27 +00:00 committed by Torsten Schönfeld
parent 06fc298662
commit 2293bbcd2d
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-05-15 Torsten Schoenfeld <kaffeetisch@gmx.de>
* gtk/gtkprintoperation.c (pdf_end_run): Unset priv->platform_data and
priv->free_platform_data to prevent gtk_print_operation_finalize()
from freeing the cairo surface a second time.
2007-05-14 Kristian Rietveld <kris@gtk.org>
* gtk/gtkfilechooserdefault.c (recent_column_path_sort_func): remove

View File

@ -1807,6 +1807,9 @@ pdf_end_run (GtkPrintOperation *op,
cairo_surface_finish (surface);
cairo_surface_destroy (surface);
priv->platform_data = NULL;
priv->free_platform_data = NULL;
}
static GtkPrintOperationResult