Skip to content

Commit

Permalink
Fix memory issue with spans
Browse files Browse the repository at this point in the history
  • Loading branch information
tustanivsky committed Oct 30, 2024
1 parent ccad833 commit 1c0e03d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugin-dev/Source/Sentry/Private/Apple/SentrySpanApple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
SentrySpanApple::SentrySpanApple(id<SentrySpan> span)
{
SpanApple = span;
[SpanApple retain];
}

SentrySpanApple::~SentrySpanApple()
{
// Put custom destructor logic here if needed
[SpanApple release];
}

id<SentrySpan> SentrySpanApple::GetNativeObject()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
SentryTransactionApple::SentryTransactionApple(id<SentrySpan> transaction)
{
TransactionApple = transaction;
[TransactionApple retain];
}

SentryTransactionApple::~SentryTransactionApple()
{
// Put custom destructor logic here if needed
[TransactionApple release];
}

id<SentrySpan> SentryTransactionApple::GetNativeObject()
Expand Down

0 comments on commit 1c0e03d

Please sign in to comment.