diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/unittests/gui/windowmanager_unittest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/unittests/gui/windowmanager_unittest.cc b/src/unittests/gui/windowmanager_unittest.cc index 1a7ff7b61..57f35bf59 100644 --- a/src/unittests/gui/windowmanager_unittest.cc +++ b/src/unittests/gui/windowmanager_unittest.cc @@ -658,12 +658,14 @@ TEST_CASE("Windows tests", "windowmanager") SECTION("StatusWindow") { GroupDb::GroupInfos &groups = GroupDb::getGroups(); - groups[0].name = std::string(); - groups[0].longName = std::string(); + groups[0] = new GroupInfo; + groups[0]->name = std::string(); + groups[0]->longName = std::string(); CREATEWIDGETV0(statusWindow, StatusWindow); gui->draw(); mainGraphics->updateScreen(); delete2(statusWindow); + delete groups[0]; groups.clear(); } SECTION("TextCommandEditor") |