#include <plot.h>
-#include <libpspp/alloc.h>
#include <libpspp/str.h>
#include <output/manager.h>
#include <output/output.h>
#include "error.h"
+#include "xalloc.h"
#include "gettext.h"
#define _(msgid) gettext (msgid)
chart->legend_left = 810;
chart->legend_right = 1000;
chart->font_size = 0;
+ chart->in_path = false;
+ chart->dataset = NULL;
+ chart->n_datasets = 0;
strcpy(chart->fill_colour,"red");
/* Get default font size */
void
chart_submit(struct chart *chart)
{
+ int i;
struct som_entity s;
struct outp_driver *d;
d = outp_drivers (NULL);
d->class->finalise_chart(d, chart);
+
+ for (i = 0 ; i < chart->n_datasets; ++i)
+ free (chart->dataset[i]);
+ free (chart->dataset);
+
free(chart);
}