From 1b054d46d25b3db7ccb9244aa169de34b619cd99 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 12 Mar 2019 14:51:51 +0100 Subject: Correct use of uninitialized dt_d.num_rd and delete reported by valgrind. Signed-off-by: Pavel Pisa --- qtmips_gui/cacheview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_gui') 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 { -- cgit v1.2.3