From 72b020d7ff034523ffd1e192647e568dfc835453 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sun, 22 Jan 2012 09:31:43 +0100 Subject: memleak / header stuff / unused variable. (bzr r10917) --- src/extension/internal/latex-pstricks.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/extension') diff --git a/src/extension/internal/latex-pstricks.cpp b/src/extension/internal/latex-pstricks.cpp index 4b8d926f9..72eeaed50 100644 --- a/src/extension/internal/latex-pstricks.cpp +++ b/src/extension/internal/latex-pstricks.cpp @@ -65,19 +65,14 @@ unsigned int PrintLatex::begin (Inkscape::Extension::Print *mod, SPDocument *doc { Inkscape::SVGOStringStream os; int res; - FILE *osf, *osp; - const gchar * fn; - - os.setf(std::ios::fixed); - - fn = mod->get_param_string("destination"); - - osf = NULL; - osp = NULL; - + FILE *osf = NULL; + const gchar * fn = NULL; gsize bytesRead = 0; gsize bytesWritten = 0; GError* error = NULL; + + os.setf(std::ios::fixed); + fn = mod->get_param_string("destination"); gchar* local_fn = g_filename_from_utf8( fn, -1, &bytesRead, &bytesWritten, &error); fn = local_fn; -- cgit v1.2.3