1
0
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:
Tux3 / Mlkj / !Lev.uXFMLA 2014-10-27 23:56:21 +01:00
parent 7b3c2bd1e8
commit f9df6fc8f6
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
3 changed files with 4 additions and 7 deletions

View File

@ -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)

View File

@ -74,6 +74,7 @@ IdentityForm::IdentityForm() :
IdentityForm::~IdentityForm() IdentityForm::~IdentityForm()
{ {
delete bodyUI;
} }
void IdentityForm::copyIdClicked() void IdentityForm::copyIdClicked()

View File

@ -285,6 +285,7 @@ Widget::~Widget()
delete trayMenu; delete trayMenu;
delete icon; delete icon;
delete ui; delete ui;
delete translator;
instance = nullptr; instance = nullptr;
} }