aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2004-03-25 21:31:03 +0000
committerMax Horn2004-03-25 21:31:03 +0000
commit997ccc6c056bac2cd9aee91ec20ed0c3920ffcb4 (patch)
tree632205b3b3d349402fa3365a5126df1009560b54 /gui
parentcb8ca939c2378990fb0ac24250a6aef9bcc56ecf (diff)
downloadscummvm-rg350-997ccc6c056bac2cd9aee91ec20ed0c3920ffcb4.tar.gz
scummvm-rg350-997ccc6c056bac2cd9aee91ec20ed0c3920ffcb4.tar.bz2
scummvm-rg350-997ccc6c056bac2cd9aee91ec20ed0c3920ffcb4.zip
fix memory leak
svn-id: r13381
Diffstat (limited to 'gui')
-rw-r--r--gui/launcher.cpp3
1 files changed, 3 insertions, 0 deletions
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()) {