A new user interface for you! Read more...

File fix-memleak.patch of Package kwave

From: Thomas Eschenbacher <Thomas.Eschenbacher@gmx.de>
Date: Tue, 13 Oct 2015 09:40:09 +0000
Subject: fixed memory leak in FileContext
X-Git-Url: http://quickgit.kde.org/?p=kwave.git&a=commitdiff&h=397b39373a0222d207e1047272563325027e0098
---
fixed memory leak in FileContext
---


--- a/kwave/FileContext.cpp
+++ b/kwave/FileContext.cpp
@@ -941,7 +941,10 @@
 	);
 	if (!dlg) return 0;
 	dlg->setCaption(i18n("Save As"));
-	if (dlg->exec() != QDialog::Accepted) return -1;
+	if (dlg->exec() != QDialog::Accepted) {
+	    delete dlg;
+	    return -1;
+	}
 
 	url = dlg->selectedUrl();
 	if (url.isEmpty()) {