[gnumeric] plug leak



commit f5725cf3669ea8ec80b0024805a8f816e05f3152
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Sun Apr 12 01:26:02 2015 -0600

    plug leak
    
    2015-04-11  Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * openoffice-read.c (od_draw_image): don't keep image ref

 plugins/openoffice/ChangeLog         |    4 ++++
 plugins/openoffice/openoffice-read.c |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index b7b99f7..0baefdd 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,9 @@
 2015-04-11  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+       * openoffice-read.c (od_draw_image): don't keep image ref
+
+2015-04-11  Andreas J. Guelzow <aguelzow pyrshep ca>
+
        * openoffice-read.c (od_draw_frame_start): read and store the
        image name
        (od_draw_frame_end_full): clear the saved image name
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 9e12d67..bf7c535 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -8402,6 +8402,7 @@ od_draw_image (GsfXMLIn *xin, xmlChar const **attrs)
                                      "image", &image,
                                      NULL);
                        go_image_set_name (image, state->chart.name);
+                       g_object_unref (image);
                }
        } else
                oo_warning (xin, _("Unable to load "


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