2007-02-05 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/ps/ps.c: (psscan):
Fix memory leak.
svn path=/trunk/; revision=2295
+2007-02-05 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * backend/ps/ps.c: (psscan):
+
+ Fix memory leak.
+
2007-02-03 Carlos Garcia Campos <carlosgc@gnome.org>
* configure.ac:
rewind(file);
- fd = ps_io_init(file);
+ fd = ps_io_init(file);
if (!readline(fd, &line, &position, &line_len)) {
fprintf(stderr, "Warning: empty file.\n");
ps_io_exit(fd);
&& (line[0] != '%')) ;
if(line[0] != '%') {
g_print("psscan error: input files seems to be a PJL file.\n");
+ ps_io_exit(fd);
return (NULL);
}
}
doc = g_new0(struct document, 1);
doc->default_page_orientation = GTK_GS_ORIENTATION_NONE;
doc->orientation = GTK_GS_ORIENTATION_NONE;
+ ps_io_exit(fd);
return (doc);
}
}
}
#endif
+ ps_io_exit(fd);
return doc;
}