Skip to content

Commit 7c8acaa

Browse files
Qt: remove duplicate call to solumDestroy()
main() already contains such a call. Since solumInit() is also called there, it's the only place where this call is appropriate. Calling this function within Qt causes use-after-free errors in the main window cleanup code.
1 parent 52017c2 commit 7c8acaa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

examples/solum_qt/solumqt.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ void Solum::closeEvent(QCloseEvent*)
208208
{
209209
if (connected_)
210210
solumDisconnect();
211-
212-
solumDestroy();
213211
}
214212

215213
/// called for starting a cloud request to retrieve the probe credentials

0 commit comments

Comments
 (0)