From 0a3fabc5d76805089c15bcce2f65b4afc3277a5c Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Wed, 30 Jul 2008 06:46:49 +0000 Subject: [PATCH] Fix mem leak svn path=/trunk/KDE/kdepim/; revision=839486 --- kmfilteraction.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kmfilteraction.cpp b/kmfilteraction.cpp index 472777444..5d4989156 100644 --- a/kmfilteraction.cpp +++ b/kmfilteraction.cpp @@ -510,8 +510,11 @@ KMFilterAction::ReturnCode KMFilterActionWithCommand::genericProcess(KMMessage* QString commandLine = substituteCommandLineArgsFor( aMsg, atmList ); if ( commandLine.isEmpty() ) + { + qDeleteAll( atmList ); + atmList.clear(); return ErrorButGoOn; - + } // The parentheses force the creation of a subshell // in which the user-specified command is executed. // This is to really catch all output of the command as well