Skip to content

Commit

Permalink
core: fixed segmentation fault in handle_pending_updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Sep 5, 2024
1 parent bc455e8 commit 9fa490a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/picom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,10 @@ static void handle_pending_updates(struct session *ps, double delta_t) {
ps->pending_updates = false;
}

if (ps->backend_data == NULL) {
return;
}

wm_stack_foreach_safe(ps->wm, cursor, tmp) {
auto w = wm_ref_deref(cursor);
BUG_ON(w != NULL && w->tree_ref != cursor);
Expand Down

0 comments on commit 9fa490a

Please sign in to comment.