diff --git a/src/Main/sentryIntegration.cxx b/src/Main/sentryIntegration.cxx index fd12ec826..5b383a2b3 100644 --- a/src/Main/sentryIntegration.cxx +++ b/src/Main/sentryIntegration.cxx @@ -567,12 +567,16 @@ void addSentryTag(const std::string& tag, const std::string& value) SentryAllocErrorSupression::SentryAllocErrorSupression() { +#if defined(HAVE_SENTRY) && !defined(BUILDING_TESTSUITE) perThread_reportAllocErrors = false; +#endif } SentryAllocErrorSupression::~SentryAllocErrorSupression() { +#if defined(HAVE_SENTRY) && !defined(BUILDING_TESTSUITE) perThread_reportAllocErrors = true; +#endif } } // of namespace flightgear