Merge pull request #2278 from lioncash/leak

Debugger: Fix memory leaks related to grid tables
This commit is contained in:
Lioncash 2015-04-09 11:07:27 -04:00
commit 2c2409fee4
3 changed files with 1 additions and 3 deletions

View File

@ -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;
}

View File

@ -241,7 +241,6 @@ wxGridCellAttr *CRegTable::GetAttr(int row, int col, wxGridCellAttr::wxAttrKind)
}
attr->SetTextColour(red ? *wxRED : *wxBLACK);
attr->IncRef();
return attr;
}

View File

@ -208,7 +208,7 @@ wxGridCellAttr* CWatchTable::GetAttr(int row, int col, wxGridCellAttr::wxAttrKin
attr->SetBackgroundColour(*wxLIGHT_GREY);
}
}
attr->IncRef();
return attr;
}