Fix typo causing double free on item remove

This commit is contained in:
Ethan Rose 2021-11-13 13:57:46 -08:00
parent fc3db286b7
commit eaf1bf4dc5

View file

@ -29,8 +29,8 @@ void bar_item_inherit_from_item(struct bar_item* bar_item, struct bar_item* ance
text_destroy(&bar_item->label);
char* name = bar_item->name;
char* script = bar_item->name;
char* click_script = bar_item->name;
char* script = bar_item->script;
char* click_script = bar_item->click_script;
memcpy(bar_item, ancestor, sizeof(struct bar_item));