[gnumeric] GUI: Avoid leaking a style in page setup.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: Avoid leaking a style in page setup.
- Date: Tue, 11 Aug 2009 15:55:19 +0000 (UTC)
commit b8c555ecbce73fa6298d6d381603eb1bea964564
Author: Morten Welinder <terra gnome org>
Date: Tue Aug 11 11:54:51 2009 -0400
GUI: Avoid leaking a style in page setup.
src/dialogs/ChangeLog | 5 +++++
src/dialogs/dialog-printer-setup.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index d55d787..494c5d0 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-11 Morten Welinder <terra gnome org>
+
+ * dialog-printer-setup.c (create_hf_preview_canvas): Avoid leaking
+ the printer style.
+
2009-08-05 Andreas J. Guelzow <aguelzow pyrshep ca>
* search-replace.glade: make the dialog title match the menu entry
diff --git a/src/dialogs/dialog-printer-setup.c b/src/dialogs/dialog-printer-setup.c
index ab2e53d..eb47343 100644
--- a/src/dialogs/dialog-printer-setup.c
+++ b/src/dialogs/dialog-printer-setup.c
@@ -1900,7 +1900,7 @@ create_hf_preview_canvas (PrinterSetupState *state, gboolean header)
"fill-color", "white",
NULL);
- style = gnm_style_dup (gnm_conf_get_printer_decoration_font ());
+ style = gnm_conf_get_printer_decoration_font ();
font_desc = pango_font_description_new ();
pango_font_description_set_family (font_desc, gnm_style_get_font_name (style));
pango_font_description_set_style
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]