[gnumeric] Leak fixes.



commit 49faa8fbdf3fda77cdd9212fd943deefef72f8b5
Author: Morten Welinder <terra gnome org>
Date:   Sun Mar 17 20:08:55 2013 -0400

    Leak fixes.

 ChangeLog     |    1 +
 src/wbc-gtk.c |    8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d1de09b..d4454c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * src/wbc-gtk.c (gnm_font_action_create_tool_item): Don't show the
        style since we're not picking it explicitly.
+       (cb_font_filter): Fix leak.
 
 2013-03-14  Morten Welinder  <terra gnome org>
 
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index 3d0df95..ada9466 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -3427,9 +3427,11 @@ cb_font_filter (G_GNUC_UNUSED const PangoFontFamily *family,
                debug = gnm_debug_flag ("fonts");
 
        if (n_sizes > 0 && debug) {
-               g_printerr ("Ignoring face %s\n",
-                           pango_font_description_to_string
-                           (pango_font_face_describe (face)));
+               PangoFontDescription *desc = pango_font_face_describe (face);
+               char *s = pango_font_description_to_string (desc);
+               g_printerr ("Ignoring bitmap face %s\n", s);
+               g_free (s);
+               pango_font_description_free (desc);
        }
 
        return n_sizes == 0;


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