mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix small memory leaks
Mostly to make valgrind happy
This commit is contained in:
parent
7b3c2bd1e8
commit
f9df6fc8f6
|
@ -45,14 +45,9 @@ FilesForm::FilesForm()
|
||||||
|
|
||||||
FilesForm::~FilesForm()
|
FilesForm::~FilesForm()
|
||||||
{
|
{
|
||||||
#if 0
|
delete recvd;
|
||||||
delete recvd; // docs claim this will clean up children
|
|
||||||
delete sent;
|
delete sent;
|
||||||
delete head;
|
head->deleteLater();
|
||||||
#endif
|
|
||||||
// having these lines caused a SIGABRT because free() received an invalid pointer
|
|
||||||
// but since this is only called on program shutdown anyways,
|
|
||||||
// I'm not too bummed about removing it
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FilesForm::show(Ui::MainWindow& ui)
|
void FilesForm::show(Ui::MainWindow& ui)
|
||||||
|
|
|
@ -74,6 +74,7 @@ IdentityForm::IdentityForm() :
|
||||||
|
|
||||||
IdentityForm::~IdentityForm()
|
IdentityForm::~IdentityForm()
|
||||||
{
|
{
|
||||||
|
delete bodyUI;
|
||||||
}
|
}
|
||||||
|
|
||||||
void IdentityForm::copyIdClicked()
|
void IdentityForm::copyIdClicked()
|
||||||
|
|
|
@ -285,6 +285,7 @@ Widget::~Widget()
|
||||||
delete trayMenu;
|
delete trayMenu;
|
||||||
delete icon;
|
delete icon;
|
||||||
delete ui;
|
delete ui;
|
||||||
|
delete translator;
|
||||||
instance = nullptr;
|
instance = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user