Commit 20f72c43 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Carlos Garcia Campos

Fix memory leak. Fixes bug #399907.

2007-01-23  Carlos Garcia Campos  <carlosgc@gnome.org>
	* gtk/gtkpagesetup.c
	(gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
	Fixes bug #399907. 

svn path=/trunk/; revision=17206
parent 75b873d1
2007-01-23 Carlos Garcia Campos <carlosgc@gnome.org>
* gtk/gtkpagesetup.c
(gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
Fixes bug #399907.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
......
......@@ -210,7 +210,7 @@ void
gtk_page_setup_set_paper_size_and_default_margins (GtkPageSetup *setup,
GtkPaperSize *size)
{
setup->paper_size = gtk_paper_size_copy (size);
gtk_page_setup_set_paper_size (setup, size);
setup->top_margin = gtk_paper_size_get_default_top_margin (setup->paper_size, GTK_UNIT_MM);
setup->bottom_margin = gtk_paper_size_get_default_bottom_margin (setup->paper_size, GTK_UNIT_MM);
setup->left_margin = gtk_paper_size_get_default_left_margin (setup->paper_size, GTK_UNIT_MM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment