X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fodt.c;h=a02506c1e9eeacbae9528aa663e55044e8194055;hb=2197825792ee6ce712da7e4fb600cb71fa0c57ec;hp=fdaa6f902de642efbd7a438a745e67feb21e56f2;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;p=pspp diff --git a/src/output/odt.c b/src/output/odt.c index fdaa6f902d..a02506c1e9 100644 --- a/src/output/odt.c +++ b/src/output/odt.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -380,6 +380,7 @@ odt_destroy (struct output_driver *driver) zip_writer_close (odt->zip); } + free (odt->file_name); free (odt->command_name); free (odt); } @@ -516,7 +517,8 @@ odt_submit (struct output_driver *driver, } } -struct output_driver_factory odt_driver_factory = { "odt", odt_create }; +struct output_driver_factory odt_driver_factory = + { "odt", "pspp.odf", odt_create }; static const struct output_driver_class odt_driver_class = {