From 997ccc6c056bac2cd9aee91ec20ed0c3920ffcb4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 25 Mar 2004 21:31:03 +0000 Subject: fix memory leak svn-id: r13381 --- gui/launcher.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui') diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 50a1a4340a..8b2e6a6327 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -407,6 +407,9 @@ void LauncherDialog::addGame() { // ...so let's determine a list of candidates, games that // could be contained in the specified directory. DetectedGameList candidates(PluginManager::instance().detectGames(*files)); + + delete files; + files = 0; int idx; if (candidates.isEmpty()) { -- cgit v1.2.3