cairo: Fix font scaling.
[pspp] / src / output / group-item.c
index b5cb84ea59b7bb175a0bbe439ce06aeba7df6119..4fbc08630a91d888e6e0675b8b8dc4e1bc82031f 100644 (file)
 
 struct group_open_item *
 group_open_item_create (const char *command_name)
+{
+  return group_open_item_create_nocopy (
+    command_name ? xstrdup (command_name) : NULL);
+}
+
+struct group_open_item *
+group_open_item_create_nocopy (char *command_name)
 {
   struct group_open_item *item;
 
   item = xmalloc (sizeof *item);
   output_item_init (&item->output_item, &group_open_item_class);
-  item->command_name = command_name ? xstrdup (command_name) : NULL;
+  item->command_name = command_name;
 
   return item;
 }
@@ -56,6 +63,7 @@ group_open_item_destroy (struct output_item *output_item)
 
 const struct output_item_class group_open_item_class =
   {
+    "group_open",
     group_open_item_destroy,
   };
 \f
@@ -88,5 +96,6 @@ group_close_item_destroy (struct output_item *output_item)
 
 const struct output_item_class group_close_item_class =
   {
+    "group_close",
     group_close_item_destroy,
   };