X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable-item.c;h=a1595479bbf5bde005fc9734085b471e8f5c0cff;hb=6cbd13aef6c8f5f7c363a6ebc5468863b558c4d3;hp=6243f03109429b446e34e90d83960e7bd95dd968;hpb=0d95a6ff1dff86f7d1578a8bf20a964c7a00b6c3;p=pspp diff --git a/src/output/table-item.c b/src/output/table-item.c index 6243f03109..a1595479bb 100644 --- a/src/output/table-item.c +++ b/src/output/table-item.c @@ -131,6 +131,7 @@ table_item_create (struct table *table, const char *title, const char *caption) item->title = table_item_text_create (title); item->layers = NULL; item->caption = table_item_text_create (caption); + item->pt = NULL; return item; } @@ -222,6 +223,7 @@ table_item_destroy (struct output_item *output_item) table_item_text_destroy (item->title); table_item_text_destroy (item->caption); table_item_layers_destroy (item->layers); + pivot_table_unref (item->pt); table_unref (item->table); free (item); }