text-item: Simplify text_item further to just hold a pivot_value.
[pspp] / src / output / html.c
index 644ef49eba9e84082141fc1d5ef1cbb917eb9231..0be011d12876acbac0f55c255aece5c8cb8d9227 100644 (file)
@@ -292,7 +292,7 @@ html_submit (struct output_driver *driver,
   else if (is_text_item (output_item))
     {
       struct text_item *text_item = to_text_item (output_item);
-      const char *s = text_item_get_text (text_item);
+      char *s = text_item_get_plain_text (text_item);
 
       switch (text_item_get_type (text_item))
         {
@@ -319,6 +319,8 @@ html_submit (struct output_driver *driver,
           fprintf (html->file, "</p>\n");
           break;
         }
+
+      free (s);
     }
   else if (is_message_item (output_item))
     {