diff --git a/qa/unittests/pcbnew/test_board_item.cpp b/qa/unittests/pcbnew/test_board_item.cpp index b4b2939fbb..18104e588d 100644 --- a/qa/unittests/pcbnew/test_board_item.cpp +++ b/qa/unittests/pcbnew/test_board_item.cpp @@ -62,6 +62,11 @@ public: { } + ~TEST_BOARD_ITEM_FIXTURE() + { + m_text.SetParentGroup( nullptr ); + } + BOARD_ITEM* Instantiate( KICAD_T aType ) { if( !IsPcbnewType( aType ) )