X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fboxplot.c;h=0abb971f44a28909cf7939c3b78b2dc57ede2937;hb=1aef11b9589a534333bbecd528efe1022a4bb9bb;hp=0a933195d04e59adbab217c5e52ed6743d41d0e0;hpb=9ceda5b4082cf665b5279cc5c56ecbe4fd44fb15;p=pspp diff --git a/src/output/charts/boxplot.c b/src/output/charts/boxplot.c index 0a933195d0..0abb971f44 100644 --- a/src/output/charts/boxplot.c +++ b/src/output/charts/boxplot.c @@ -41,7 +41,11 @@ boxplot_add_box (struct boxplot *boxplot, struct box_whisker *bw, const char *label) { if (boxplot == NULL) - return; + { + struct statistic *statistic = &bw->parent.parent; + statistic->destroy (statistic); + return; + } struct boxplot_box *box; if (boxplot->n_boxes >= boxplot->boxes_allocated)