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;
|
audioInputFlag = false;
|
||||||
audioOutputFlag = false;
|
audioOutputFlag = false;
|
||||||
emit hangupCall(callId);
|
emit hangupCall(callId);
|
||||||
|
|
||||||
|
enableCallButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatForm::onRejectCallTriggered()
|
void ChatForm::onRejectCallTriggered()
|
||||||
|
@ -665,8 +667,8 @@ void ChatForm::onEnableCallButtons()
|
||||||
this, SLOT(onVolMuteToggle()));
|
this, SLOT(onVolMuteToggle()));
|
||||||
|
|
||||||
disableCallButtonsTimer->stop();
|
disableCallButtonsTimer->stop();
|
||||||
disableCallButtonsTimer = nullptr;
|
|
||||||
delete disableCallButtonsTimer;
|
delete disableCallButtonsTimer;
|
||||||
|
disableCallButtonsTimer = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatForm::onMicMuteToggle()
|
void ChatForm::onMicMuteToggle()
|
||||||
|
@ -861,16 +863,16 @@ void ChatForm::startCounter()
|
||||||
void ChatForm::stopCounter()
|
void ChatForm::stopCounter()
|
||||||
{
|
{
|
||||||
if (callDurationTimer)
|
if (callDurationTimer)
|
||||||
{
|
{
|
||||||
addSystemInfoMessage(tr("Call with %1 ended. %2").arg(f->getDisplayedName(),
|
addSystemInfoMessage(tr("Call with %1 ended. %2").arg(f->getDisplayedName(),
|
||||||
secondsToDHMS(timeElapsed.elapsed()/1000)),
|
secondsToDHMS(timeElapsed.elapsed()/1000)),
|
||||||
"white", QDateTime::currentDateTime());
|
"white", QDateTime::currentDateTime());
|
||||||
callDurationTimer->stop();
|
callDurationTimer->stop();
|
||||||
callDuration->setText("");
|
callDuration->setText("");
|
||||||
callDuration->hide();
|
callDuration->hide();
|
||||||
callDurationTimer = nullptr;
|
|
||||||
|
|
||||||
delete callDurationTimer;
|
delete callDurationTimer;
|
||||||
|
callDurationTimer = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user