mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-12-03 16:49:12 +00:00
free context correctly
This commit is contained in:
parent
470cef7562
commit
c4a946ff96
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ void bar_manager_handle_system_woke(struct bar_manager* bar_manager) {
|
|||
|
||||
void bar_manager_handle_notification(struct bar_manager* bar_manager, char* context) {
|
||||
char* name = custom_events_get_name_for_notification(&bar_manager->custom_events, context);
|
||||
free(context);
|
||||
if (!name) return;
|
||||
bar_manager_custom_events_trigger(bar_manager, name);
|
||||
free(context);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue