forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
75b873d1cc
commit
20f72c4359
@ -1,3 +1,9 @@
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user