diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-03-12 14:51:51 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-03-12 14:51:51 +0100 |
commit | 1b054d46d25b3db7ccb9244aa169de34b619cd99 (patch) | |
tree | 67def146d9c2e3797ed843f4ab7545839855709d /qtmips_gui | |
parent | 93eb395b25d29a0c5f766f249ad592182ce64639 (diff) | |
download | qtmips-1b054d46d25b3db7ccb9244aa169de34b619cd99.tar.gz qtmips-1b054d46d25b3db7ccb9244aa169de34b619cd99.tar.bz2 qtmips-1b054d46d25b3db7ccb9244aa169de34b619cd99.zip |
Correct use of uninitialized dt_d.num_rd and delete reported by valgrind.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui')
-rw-r--r-- | qtmips_gui/cacheview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/cacheview.cpp b/qtmips_gui/cacheview.cpp index 09f3df7..b246102 100644 --- a/qtmips_gui/cacheview.cpp +++ b/qtmips_gui/cacheview.cpp @@ -217,7 +217,7 @@ CacheViewBlock::~CacheViewBlock() { delete[] tag; for (unsigned y = 0; y < rows; y++) delete[] data[y]; - delete data; + delete[] data; } QRectF CacheViewBlock::boundingRect() const { |