From 38cb9c123bf444c96901283146776769fc33c436 Mon Sep 17 00:00:00 2001 From: Sebastien Mamessier Date: Mon, 11 Apr 2016 11:31:05 -0400 Subject: [PATCH] Copied RTI::Exception destructor to RTIFedTime.cc to force typeinfo to libfedtime --- libRTI/hla-1_3/RTIfedTime.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libRTI/hla-1_3/RTIfedTime.cc b/libRTI/hla-1_3/RTIfedTime.cc index 7543472..1177965 100644 --- a/libRTI/hla-1_3/RTIfedTime.cc +++ b/libRTI/hla-1_3/RTIfedTime.cc @@ -60,6 +60,14 @@ const char *infinity_str = "+inf" ; } // anonymous namespace +// To force RTI::Exception typeinfo into libfedtime library +RTI::Exception::~Exception() +{ + if (NULL!=_reason) { + free(_reason); + } +} + // ---------------------------------------------------------------------------- // FedTimeFactory RTI::FedTime * @@ -69,7 +77,7 @@ RTI::FedTimeFactory::makeZero() try { return new RTIfedTime(); } - catch (std::bad_alloc) { + catch (std::bad_alloc) { //throw RTI::MemoryExhausted("Cannot allocate RTI::FedTime."); } } -- 2.7.4