Skip to content

Commit 7f2a959

Browse files
committed
Refs #21670: Fix destructor in tests for 2.x
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
1 parent 9b94f38 commit 7f2a959

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ddsrouter_core/test/blackbox/ddsrouter_core/dds/types/test_participants.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,6 @@ class TestSubscriber
286286
{
287287
if (participant_ != nullptr)
288288
{
289-
if (topic_ != nullptr)
290-
{
291-
participant_->delete_topic(topic_);
292-
}
293289
if (subscriber_ != nullptr)
294290
{
295291
if (reader_ != nullptr)
@@ -298,6 +294,10 @@ class TestSubscriber
298294
}
299295
participant_->delete_subscriber(subscriber_);
300296
}
297+
if (topic_ != nullptr)
298+
{
299+
participant_->delete_topic(topic_);
300+
}
301301
eprosima::fastdds::dds::DomainParticipantFactory::get_instance()->delete_participant(participant_);
302302
}
303303
}

0 commit comments

Comments
 (0)