[gnumeric] PrintInfo: plug leak.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] PrintInfo: plug leak.
- Date: Thu, 3 Nov 2011 14:04:38 +0000 (UTC)
commit c07e5ed5c0dcbe79412ef83fcd8727acdf8791a4
Author: Morten Welinder <terra gnome org>
Date: Thu Nov 3 10:04:26 2011 -0400
PrintInfo: plug leak.
ChangeLog | 2 ++
src/print-info.c | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5d54cab..07a3d3f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2011-11-03 Morten Welinder <terra gnome org>
+ * src/print-info.c (print_info_load_defaults): Plug leak.
+
* src/graph.c (gnm_go_data_vector_get_markup): Maintain a ref to
markup.
diff --git a/src/print-info.c b/src/print-info.c
index 5bac084..b6b631a 100644
--- a/src/print-info.c
+++ b/src/print-info.c
@@ -228,7 +228,7 @@ PrintInformation *
print_info_load_defaults (PrintInformation *res)
{
GSList *list;
- GtkPrintSettings* settings = gnm_conf_get_print_settings ();
+ GtkPrintSettings *settings;
if (res->page_setup != NULL)
return res;
@@ -274,8 +274,8 @@ print_info_load_defaults (PrintInformation *res)
g_slist_nth_data (list, 2)) :
print_hf_new ("", _("Page &[PAGE]"), "");
+ settings = gnm_conf_get_print_settings ();
print_info_set_from_settings (res, settings);
-
g_object_unref (settings);
return res;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]