Memory leaks and "leaks" fixes.
This commit is contained in:
parent
a4d3dd90fd
commit
e5e9950cfc
@ -68,7 +68,8 @@ Pix * convertImage (const QImage &image) {
|
|||||||
}
|
}
|
||||||
pixSetResolution (pix, resolutionX, resolutionY);
|
pixSetResolution (pix, resolutionX, resolutionY);
|
||||||
|
|
||||||
return pixEndianByteSwapNew (pix);
|
pixEndianByteSwap (pix);
|
||||||
|
return pix;
|
||||||
}
|
}
|
||||||
|
|
||||||
QImage convertImage (Pix &image) {
|
QImage convertImage (Pix &image) {
|
||||||
|
@ -187,6 +187,12 @@ void Manager::applySettings () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Manager::~Manager () {
|
Manager::~Manager () {
|
||||||
|
foreach (SelectionDialog * selection, selections_.values ()) {
|
||||||
|
selection->hide ();
|
||||||
|
delete selection;
|
||||||
|
}
|
||||||
|
trayIcon_->hide ();
|
||||||
|
delete trayIcon_->contextMenu ();
|
||||||
foreach (QThread * thread, threads_) {
|
foreach (QThread * thread, threads_) {
|
||||||
thread->quit ();
|
thread->quit ();
|
||||||
thread->wait (1000000);
|
thread->wait (1000000);
|
||||||
|
@ -23,6 +23,7 @@ SelectionDialog::SelectionDialog (const LanguageHelper &dictionary, QWidget *par
|
|||||||
}
|
}
|
||||||
|
|
||||||
SelectionDialog::~SelectionDialog () {
|
SelectionDialog::~SelectionDialog () {
|
||||||
|
delete languageMenu_;
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user