[gnumeric] ods: fix export leak.



commit 2a3c4d7645fc74aec9b23222a7629009e13980ad
Author: Morten Welinder <terra gnome org>
Date:   Thu Jan 20 12:16:00 2022 -0500

    ods: fix export leak.

 NEWS                                  | 1 +
 plugins/openoffice/openoffice-write.c | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index 7a4904198..6a12f4675 100644
--- a/NEWS
+++ b/NEWS
@@ -16,6 +16,7 @@ Morten:
        * Fix rich-text rendering (based on work of Jean).  [#607]
        * Fix crash with conditional styling.  [#597]
        * Extend BITOR, BITAND, BITXOR to any numbers of arguments.
+       * Fix ods export leak.  [#611]
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.50
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 2127570d5..bf8f74c72 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -3072,11 +3072,9 @@ odf_write_image (GnmOOExport *state, SheetObject *so, char const *name)
        if (name != NULL) {
                char *image_type;
                char *fullname;
-               GOImage *image = NULL;
 
                g_object_get (G_OBJECT (so),
                              "image-type", &image_type,
-                             "image", &image,
                              NULL);
 
                fullname = g_strdup_printf ("Pictures/%s.%s", name, image_type);


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