output-item: Make command name part of every output_item.
[pspp] / src / output / output-item.c
index cd37031b654b628711fc63dafc4faca3cf795e8b..f80ea19c46019815f520c656b125392408e03639 100644 (file)
@@ -51,8 +51,10 @@ output_item_unref (struct output_item *item)
       if (--item->ref_cnt == 0)
         {
           char *label = item->label;
+          char *command_name = item->command_name;
           item->class->destroy (item);
           free (label);
+          free (command_name);
         }
     }
 }