summaryrefslogtreecommitdiff
path: root/gtk/gtkpagesetup.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-01-23 21:28:29 +0000
committerCarlos Garcia Campos <carlosgc@src.gnome.org>2007-01-23 21:28:29 +0000
commit20f72c43595a374873bbb6599c547648a741b50d (patch)
treeff4ea3643420b609b21e22615d97a6cd4f57e727 /gtk/gtkpagesetup.c
parent75b873d1cc35ab1d1abb06d13a7554c2bfe4b023 (diff)
downloadgdk-pixbuf-20f72c43595a374873bbb6599c547648a741b50d.tar.gz
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
Diffstat (limited to 'gtk/gtkpagesetup.c')
-rw-r--r--gtk/gtkpagesetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkpagesetup.c b/gtk/gtkpagesetup.c
index 9db0fc719..c216dc870 100644
--- a/gtk/gtkpagesetup.c
+++ b/gtk/gtkpagesetup.c
@@ -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);