Skip to content

Commit

Permalink
added decref
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMoelans committed Oct 29, 2024
1 parent 13fc770 commit 2b56915
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sentry_scope.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,10 @@ sentry__scope_apply_to_event(const sentry_scope_t *scope,
sentry_value_decref(contexts);

if (mode & SENTRY_SCOPE_BREADCRUMBS) {
PLACE_VALUE("breadcrumbs",
sentry__value_ring_buffer_to_list(scope->breadcrumbs));
sentry_value_t l
= sentry__value_ring_buffer_to_list(scope->breadcrumbs);
PLACE_VALUE("breadcrumbs", l);
sentry_value_decref(l);
}

if (mode & SENTRY_SCOPE_MODULES) {
Expand Down

0 comments on commit 2b56915

Please sign in to comment.