diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-04-07 23:16:26 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-04-07 23:16:29 -0400 |
| commit | 180854c617e1a7884e5996ab01ec751cf858aead (patch) | |
| tree | f22699785bee24d08104e4fe3928faa44f9b8a13 /Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp | |
| parent | 717b32621457ecd65677e05a00d1e2b38e9b7b68 (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.cpp | 1 |
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; } |
