mirror of
https://github.com/FelixKratz/SketchyBar
synced 2025-02-17 04:58:28 +00:00
better remove bounding rects
This commit is contained in:
parent
e04f7cac0e
commit
f4eec60102
1 changed files with 2 additions and 2 deletions
|
@ -545,8 +545,8 @@ void bar_item_destroy(struct bar_item* bar_item) {
|
|||
text_destroy(&bar_item->label);
|
||||
|
||||
if (bar_item->bounding_rects) {
|
||||
for (int j = 0; j < bar_item->num_rects; j++) {
|
||||
free(bar_item->bounding_rects[j]);
|
||||
for (int adid = 1; adid <= bar_item->num_rects; adid++) {
|
||||
bar_item_remove_bounding_rect_for_display(bar_item, adid);
|
||||
}
|
||||
free(bar_item->bounding_rects);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue