mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-27 05:40:17 +00:00
Fix typo causing double free on item remove
This commit is contained in:
parent
fc3db286b7
commit
eaf1bf4dc5
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue