aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pankratz <kratz00@gmx.de>2016-02-29 18:39:21 +0100
committerSteffen Pankratz <kratz00@gmx.de>2016-02-29 18:39:21 +0100
commit6d7d35fa7630dde930c4647af41b3d8d76987f45 (patch)
treec59d7d18f57cdfc466fd7c61874259c587f421f0
parenta813fee3a0e52db9ae7f8ee4a6816e1a3caa3e97 (diff)
downloadexternal_heimdall-6d7d35fa7630dde930c4647af41b3d8d76987f45.zip
external_heimdall-6d7d35fa7630dde930c4647af41b3d8d76987f45.tar.gz
external_heimdall-6d7d35fa7630dde930c4647af41b3d8d76987f45.tar.bz2
- fixed memory leak
Memory allocated by 'new[]' should be deallocated by 'delete[]'.
-rw-r--r--heimdall-frontend/source/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/heimdall-frontend/source/mainwindow.cpp b/heimdall-frontend/source/mainwindow.cpp
index e110d69..8167e5a 100644
--- a/heimdall-frontend/source/mainwindow.cpp
+++ b/heimdall-frontend/source/mainwindow.cpp
@@ -131,7 +131,7 @@ bool MainWindow::ReadPit(QFile *file)
file->close();
bool success = currentPitData.Unpack(buffer);
- delete buffer;
+ delete[] buffer;
if (!success)
currentPitData.Clear();