Skip to content

Commit

Permalink
workaround analyzer issue in on_present_frame
Browse files Browse the repository at this point in the history
  • Loading branch information
ardera committed Sep 17, 2024
1 parent ae163c5 commit 54e0885
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/kms/kms_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,11 @@ static void on_present_frame(void *userdata) {
if (ok != 0) {
LOG_ERROR("Could not commit frame request.\n");
frame_scheduler_unref(frame->scheduler);
tracer_unref(frame->tracer);

// Analyzer thinks the tracer might already be destroyed by the tracer_unref
// above. We know that's not possible.
ANALYZER_SUPPRESS(tracer_unref(frame->tracer));

kms_req_unref(frame->req);
free(frame);
}
Expand Down

0 comments on commit 54e0885

Please sign in to comment.