[gnumeric] plug leak



commit 9c6a09565dc108dc8727feaca9b4382e698e5ddc
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Sun Apr 12 01:43:32 2015 -0600

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

 plugins/openoffice/ChangeLog          |    6 +++++-
 plugins/openoffice/openoffice-write.c |    1 +
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 0baefdd..9bdd41a 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,4 +1,8 @@
-2015-04-11  Andreas J. Guelzow <aguelzow pyrshep ca>
+2015-04-12  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+       * openoffice-write.c (odf_write_image): don't keep image ref
+
+2015-04-12  Andreas J. Guelzow <aguelzow pyrshep ca>
 
        * openoffice-read.c (od_draw_image): don't keep image ref
 
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 55206b4..a9461ec 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -3020,6 +3020,7 @@ odf_write_image (GnmOOExport *state, SheetObject *so, char const *name)
                        const char *image_name = go_image_get_name (image);
                        if (image_name)
                                gsf_xml_out_add_cstr (state->xml, DRAW "name", image_name);
+                       g_object_unref (image);
                }       
 
                fullname = g_strdup_printf ("Pictures/%s.%s", name, image_type);


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