From 6f314502f67479489403f937b1e1231f262505d3 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 9 Jun 2010 15:45:59 +0000 Subject: [PATCH] Fix memory leak in last commit --- src/GUI.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 384d07100..b6cab41dc 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -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) {