diff options
author | Steffen Pankratz <kratz00@gmx.de> | 2016-02-29 18:39:21 +0100 |
---|---|---|
committer | Steffen Pankratz <kratz00@gmx.de> | 2016-02-29 18:39:21 +0100 |
commit | 6d7d35fa7630dde930c4647af41b3d8d76987f45 (patch) | |
tree | c59d7d18f57cdfc466fd7c61874259c587f421f0 | |
parent | a813fee3a0e52db9ae7f8ee4a6816e1a3caa3e97 (diff) | |
download | external_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.cpp | 2 |
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(); |