Fix memory leak in last commit

This commit is contained in:
Christophe Dumez 2010-06-09 15:45:59 +00:00
parent 3284d7a8e6
commit 6f314502f6

View file

@ -263,6 +263,8 @@ GUI::~GUI() {
}
if(systrayIcon) {
delete systrayIcon;
}
if(myTrayIconMenu) {
delete myTrayIconMenu;
}
delete tabs;
@ -682,7 +684,7 @@ void GUI::on_actionOpen_triggered() {
// the right addTorrent function, considering
// the parameter type.
void GUI::processParams(const QString& params_str) {
processParams(params_str.split(" ", QString::SkipEmptyParts));
processParams(params_str.split(" ", QString::SkipEmptyParts));
}
void GUI::processParams(const QStringList& params) {