Skip to content

Commit

Permalink
Fix unit test crash attempt #5
Browse files Browse the repository at this point in the history
  • Loading branch information
tustanivsky committed Sep 9, 2022
1 parent eb1a188 commit 78c0abf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SentryEventDesktop::~SentryEventDesktop()

sentry_value_t SentryEventDesktop::GetNativeObject()
{
sentry_value_incref(EventDesktop);
return EventDesktop;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ USentryId* SentrySubsystemDesktop::CaptureEvent(USentryEvent* event)
TSharedPtr<SentryEventDesktop> eventDesktop = StaticCastSharedPtr<SentryEventDesktop>(event->GetNativeImpl());

sentry_value_t nativeEvent = eventDesktop->GetNativeObject();

sentry_value_incref(nativeEvent);
sentry_uuid_t id = sentry_capture_event(nativeEvent);
sentry_value_decref(nativeEvent);

Expand Down

0 comments on commit 78c0abf

Please sign in to comment.