Merge pull request #2278 from lioncash/leak
Debugger: Fix memory leaks related to grid tables
This commit is contained in:
commit
2c2409fee4
|
@ -70,7 +70,6 @@ wxGridCellAttr *CDSPRegTable::GetAttr(int row, int col, wxGridCellAttr::wxAttrKi
|
||||||
if (col == 1)
|
if (col == 1)
|
||||||
attr->SetTextColour(m_CachedRegHasChanged[row] ? *wxRED : *wxBLACK);
|
attr->SetTextColour(m_CachedRegHasChanged[row] ? *wxRED : *wxBLACK);
|
||||||
|
|
||||||
attr->IncRef();
|
|
||||||
return attr;
|
return attr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -241,7 +241,6 @@ wxGridCellAttr *CRegTable::GetAttr(int row, int col, wxGridCellAttr::wxAttrKind)
|
||||||
}
|
}
|
||||||
|
|
||||||
attr->SetTextColour(red ? *wxRED : *wxBLACK);
|
attr->SetTextColour(red ? *wxRED : *wxBLACK);
|
||||||
attr->IncRef();
|
|
||||||
return attr;
|
return attr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -208,7 +208,7 @@ wxGridCellAttr* CWatchTable::GetAttr(int row, int col, wxGridCellAttr::wxAttrKin
|
||||||
attr->SetBackgroundColour(*wxLIGHT_GREY);
|
attr->SetBackgroundColour(*wxLIGHT_GREY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
attr->IncRef();
|
|
||||||
return attr;
|
return attr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue