Skip to content

Commit

Permalink
fix: don't crash when deleting non-starting network reply
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Apr 24, 2024
1 parent 53ac470 commit e77e452
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/src/network/network-reply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ NetworkReply::~NetworkReply()
{
abort();

m_reply->deleteLater();
m_reply = nullptr;
if (m_reply != nullptr) {
m_reply->deleteLater();
m_reply = nullptr;
}
}


Expand Down

0 comments on commit e77e452

Please # to comment.