text-item: Fix reference leak in text_item_to_table_item().
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 10 Jan 2021 21:14:55 +0000 (13:14 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 10 Jan 2021 21:15:31 +0000 (13:15 -0800)
src/output/text-item.c

index 49c9f225c06a21a6b95557ddf7ce7bc2a0caff96..371ee901e6260221bf19df7344a68bc70191e7bd 100644 (file)
@@ -192,6 +192,8 @@ text_item_to_table_item (struct text_item *text_item)
   pivot_value_set_font_style (content, &text_item->style);
   pivot_table_put1 (table, 0, content);
 
+  text_item_unref (text_item);
+
   return table_item_create (table);
 }
 \f