summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-04-07 23:16:26 -0400
committerLioncash <mathew1800@gmail.com>2015-04-07 23:16:29 -0400
commit180854c617e1a7884e5996ab01ec751cf858aead (patch)
treef22699785bee24d08104e4fe3928faa44f9b8a13 /Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp
parent717b32621457ecd65677e05a00d1e2b38e9b7b68 (diff)
Debugger: Fix memory leaks related to grid tables
Incrementing the reference count here isn't necessary, as they construct with a count of 1. Incrementing again results in the attributes not being freed.
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp b/Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp
index 0eece2d15c..4b1ecfd72a 100644
--- a/Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp
+++ b/Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp
@@ -70,7 +70,6 @@ wxGridCellAttr *CDSPRegTable::GetAttr(int row, int col, wxGridCellAttr::wxAttrKi
if (col == 1)
attr->SetTextColour(m_CachedRegHasChanged[row] ? *wxRED : *wxBLACK);
- attr->IncRef();
return attr;
}