1
0
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:
agilob 2015-01-25 23:06:44 +00:00
parent a6680916b5
commit 4b854f86d1
No known key found for this signature in database
GPG Key ID: 34568050DBCCB997

View File

@ -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;
}
}