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()
|
||||
{
|
||||
#if 0
|
||||
delete recvd; // docs claim this will clean up children
|
||||
delete recvd;
|
||||
delete sent;
|
||||
delete head;
|
||||
#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
|
||||
head->deleteLater();
|
||||
}
|
||||
|
||||
void FilesForm::show(Ui::MainWindow& ui)
|
||||
|
|
|
@ -74,6 +74,7 @@ IdentityForm::IdentityForm() :
|
|||
|
||||
IdentityForm::~IdentityForm()
|
||||
{
|
||||
delete bodyUI;
|
||||
}
|
||||
|
||||
void IdentityForm::copyIdClicked()
|
||||
|
|
|
@ -285,6 +285,7 @@ Widget::~Widget()
|
|||
delete trayMenu;
|
||||
delete icon;
|
||||
delete ui;
|
||||
delete translator;
|
||||
instance = nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user