[goffice] iocontext: plug leak



commit b29e0f5cdf79f7f2524f6c1175e822f6ed5bcf45
Author: Morten Welinder <terra gnome org>
Date:   Fri Jun 12 14:06:44 2015 -0400

    iocontext: plug leak

 ChangeLog                |    4 ++++
 NEWS                     |    2 +-
 goffice/app/io-context.c |    3 +++
 3 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1f406fb..7e907bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-06-12  Morten Welinder  <terra gnome org>
+
+       * goffice/app/io-context.c (ioc_finalize): Plug leak.
+
 2015-06-01  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/graph/gog-axis-color-map.c (gog_axis_color_map_prep_sax): don't
diff --git a/NEWS b/NEWS
index e19f5f5..c8e591d 100644
--- a/NEWS
+++ b/NEWS
@@ -6,7 +6,7 @@ Jean:
 Morten:
        * Fix ABR [#749167]
        * Shield Cairo from image sizes it cannot handle.  [#749274]
-       * Plug leak.  [#749395]
+       * Plug leaks.  [#749395]
        * Portability problem affecting macs.  [#749463]
        * Fuzzed file fix.  [#750047]
 
diff --git a/goffice/app/io-context.c b/goffice/app/io-context.c
index 614fbfa..a8bf9e1 100644
--- a/goffice/app/io-context.c
+++ b/goffice/app/io-context.c
@@ -77,6 +77,9 @@ ioc_finalize (GObject *obj)
                g_object_unref (ioc->impl);
        }
 
+       g_list_free_full (ioc->progress_ranges, (GFreeFunc)g_free);
+       ioc->progress_ranges = NULL;
+
        G_OBJECT_CLASS (g_type_class_peek (G_TYPE_OBJECT))->finalize (obj);
 }
 


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