[gnumeric] xls: plug leak.



commit c3e0b333a16696495c114717ccd17ab315ee4ade
Author: Morten Welinder <terra gnome org>
Date:   Mon Apr 22 16:13:55 2013 -0400

    xls: plug leak.

 plugins/excel/ChangeLog | 2 ++
 plugins/excel/boot.c    | 1 +
 2 files changed, 3 insertions(+)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 040c368..3ad4e3e 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,5 +1,7 @@
 2013-04-22  Morten Welinder  <terra gnome org>
 
+       * boot.c (excel_enc_file_open): Plug leak.
+
        * ms-excel-read.c (excel_read_FONT): Ensure ->script, ->underline,
        and ->codepage are set.
        (gnm_xl_importer_new): Set more pivot fields.
diff --git a/plugins/excel/boot.c b/plugins/excel/boot.c
index 661ec16..48a616a 100644
--- a/plugins/excel/boot.c
+++ b/plugins/excel/boot.c
@@ -170,6 +170,7 @@ excel_enc_file_open (GOFileOpener const *fo, char const *enc, GOIOContext *conte
                        excel_read_workbook (context, wbv, input,
                                             &is_double_stream_file, enc);
                        /* NOTE : we lack a saver for the early formats */
+                       g_clear_error (&err);
                        return;
                }
 


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