diff --git a/plugin-dev/Source/Sentry/Private/Apple/SentrySpanApple.cpp b/plugin-dev/Source/Sentry/Private/Apple/SentrySpanApple.cpp index 24d086e6..ee513c8a 100644 --- a/plugin-dev/Source/Sentry/Private/Apple/SentrySpanApple.cpp +++ b/plugin-dev/Source/Sentry/Private/Apple/SentrySpanApple.cpp @@ -12,11 +12,12 @@ SentrySpanApple::SentrySpanApple(id span) { SpanApple = span; + [SpanApple retain]; } SentrySpanApple::~SentrySpanApple() { - // Put custom destructor logic here if needed + [SpanApple release]; } id SentrySpanApple::GetNativeObject() diff --git a/plugin-dev/Source/Sentry/Private/Apple/SentryTransactionApple.cpp b/plugin-dev/Source/Sentry/Private/Apple/SentryTransactionApple.cpp index 0dcad2fe..46770df0 100644 --- a/plugin-dev/Source/Sentry/Private/Apple/SentryTransactionApple.cpp +++ b/plugin-dev/Source/Sentry/Private/Apple/SentryTransactionApple.cpp @@ -13,11 +13,12 @@ SentryTransactionApple::SentryTransactionApple(id transaction) { TransactionApple = transaction; + [TransactionApple retain]; } SentryTransactionApple::~SentryTransactionApple() { - // Put custom destructor logic here if needed + [TransactionApple release]; } id SentryTransactionApple::GetNativeObject()