Skip to content

Commit

Permalink
Fix assert fail in auth tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oskirby committed Nov 25, 2024
1 parent 68c9c62 commit c6f46f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/settings/settingsmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ QString SettingsManager::getOrganizationName() {
#ifdef UNIT_TEST
// static
void SettingsManager::testCleanup() {
Q_ASSERT(s_instance);
delete s_instance;
if (s_instance) {
delete s_instance;
}
}
#endif

Expand Down

0 comments on commit c6f46f4

Please sign in to comment.