mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fixed memory leaks
This commit is contained in:
parent
a6680916b5
commit
4b854f86d1
|
@ -544,6 +544,8 @@ void ChatForm::onHangupCallTriggered()
|
|||
audioInputFlag = false;
|
||||
audioOutputFlag = false;
|
||||
emit hangupCall(callId);
|
||||
|
||||
enableCallButtons();
|
||||
}
|
||||
|
||||
void ChatForm::onRejectCallTriggered()
|
||||
|
@ -665,8 +667,8 @@ void ChatForm::onEnableCallButtons()
|
|||
this, SLOT(onVolMuteToggle()));
|
||||
|
||||
disableCallButtonsTimer->stop();
|
||||
disableCallButtonsTimer = nullptr;
|
||||
delete disableCallButtonsTimer;
|
||||
disableCallButtonsTimer = nullptr;
|
||||
}
|
||||
|
||||
void ChatForm::onMicMuteToggle()
|
||||
|
@ -861,16 +863,16 @@ void ChatForm::startCounter()
|
|||
void ChatForm::stopCounter()
|
||||
{
|
||||
if (callDurationTimer)
|
||||
{
|
||||
{
|
||||
addSystemInfoMessage(tr("Call with %1 ended. %2").arg(f->getDisplayedName(),
|
||||
secondsToDHMS(timeElapsed.elapsed()/1000)),
|
||||
"white", QDateTime::currentDateTime());
|
||||
callDurationTimer->stop();
|
||||
callDuration->setText("");
|
||||
callDuration->hide();
|
||||
callDurationTimer = nullptr;
|
||||
|
||||
delete callDurationTimer;
|
||||
callDurationTimer = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user