Update all #include directives to the currently preferred style.
[pspp-builds.git] / src / output / charts / np-plot.c
index e912479a72bbd0bceca65079a1bfc3c098522c80..ccccbeff36ae192b844a3f95b25aa6ca9c4b6534 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2004, 2008, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2008, 2009, 2011 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
 
 #include <config.h>
 
-#include <output/charts/np-plot.h>
+#include "output/charts/np-plot.h"
 
 #include <gsl/gsl_cdf.h>
 
-#include <data/casereader.h>
-#include <libpspp/cast.h>
-#include <math/np.h>
-#include <output/chart-item-provider.h>
+#include "data/casereader.h"
+#include "libpspp/cast.h"
+#include "math/np.h"
+#include "output/chart-item-provider.h"
 
 #include "gl/minmax.h"
 
@@ -36,7 +36,7 @@ make_np_plot (const struct np *np, const struct casereader *reader,
   if (np->n < 1.0)
     return NULL;
 
-  npp = xmalloc (sizeof *npp);
+  npp = xzalloc (sizeof *npp);
   chart_item_init (&npp->chart_item, &np_plot_chart_class, label);
   npp->data = casereader_clone (reader);
   npp->y_min = np->y_min;
@@ -97,7 +97,6 @@ np_plot_chart_destroy (struct chart_item *chart_item)
 {
   struct np_plot_chart *npp = to_np_plot_chart (chart_item);
   casereader_destroy (npp->data);
-  free (npp->label);
   free (npp);
 }