[goffice] Pattern: fix leak.



commit 4d2acc1045611d866e4c79cb9ef6e178a1757fec
Author: Morten Welinder <terra gnome org>
Date:   Tue Feb 17 12:44:31 2015 -0500

    Pattern: fix leak.

 ChangeLog                  |    6 ++++++
 NEWS                       |    1 +
 goffice/utils/go-pattern.c |    1 +
 goffice/utils/go-style.c   |    2 +-
 4 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3b20c17..8e95733 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-02-17  Morten Welinder  <terra gnome org>
+
+       * goffice/utils/go-style.c (go_style_set_font_desc): Doc fix.
+
+       * goffice/utils/go-pattern.c (go_pattern_get_svg_path): Plug leak.
+
 2015-02-16  Morten Welinder  <terra gnome org>
 
        * goffice/utils/go-style.c (cb_font_changed): Set auto_font.
diff --git a/NEWS b/NEWS
index 9e051a0..d885858 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Morten:
        * Add arrow selector widget.
        * Fix rendering of dotted lines.  [#744419]
        * Activate font part of graph theming.
+       * Plug leaks.
 
 --------------------------------------------------------------------------
 goffice 0.10.20:
diff --git a/goffice/utils/go-pattern.c b/goffice/utils/go-pattern.c
index ee4b41f..e192ac0 100644
--- a/goffice/utils/go-pattern.c
+++ b/goffice/utils/go-pattern.c
@@ -242,6 +242,7 @@ go_pattern_get_svg_path (GOPattern const *pattern, double *width, double *height
                                                go_xml_node_get_double (ptr, "height", &value))
                                            *height = value;
                                        svg_path = xmlGetProp (ptr, CC2XML ("d"));
+                                       xmlFree (name);
                                        break;
                                }
                                xmlFree (name);
diff --git a/goffice/utils/go-style.c b/goffice/utils/go-style.c
index d4a5a9b..df49810 100644
--- a/goffice/utils/go-style.c
+++ b/goffice/utils/go-style.c
@@ -2004,7 +2004,7 @@ go_style_get_marker (GOStyle const *style)
 }
 
 /**
- * go_style_set_font:
+ * go_style_set_font_desc:
  * @style: #GOStyle
  * @desc: (transfer full): new font description to use
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]