Skip to content

Commit

Permalink
fix segfault (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixKratz committed Jan 9, 2023
1 parent edcc10f commit 59e0605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ EVENT_CALLBACK(EVENT_HANDLER_MOUSE_UP) {

bar_item_on_click(bar_item, type, modifier_keys, point_in_window_coords);

if (bar_item->needs_update)
if (bar_item && bar_item->needs_update)
bar_manager_refresh(&g_bar_manager, false);

CFRelease(context);
Expand Down

0 comments on commit 59e0605

Please sign in to comment.