diff options
author | Max Horn | 2004-03-25 21:31:03 +0000 |
---|---|---|
committer | Max Horn | 2004-03-25 21:31:03 +0000 |
commit | 997ccc6c056bac2cd9aee91ec20ed0c3920ffcb4 (patch) | |
tree | 632205b3b3d349402fa3365a5126df1009560b54 | |
parent | cb8ca939c2378990fb0ac24250a6aef9bcc56ecf (diff) | |
download | scummvm-rg350-997ccc6c056bac2cd9aee91ec20ed0c3920ffcb4.tar.gz scummvm-rg350-997ccc6c056bac2cd9aee91ec20ed0c3920ffcb4.tar.bz2 scummvm-rg350-997ccc6c056bac2cd9aee91ec20ed0c3920ffcb4.zip |
fix memory leak
svn-id: r13381
-rw-r--r-- | gui/launcher.cpp | 3 |
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()) { |