Browse Source

Fix crash in ElementDataGridRow destructor

ElementDataGridRow::OnDataSourceDestroy confused the passed parameter with object property, in effect the later kept reference to the data source
Victor Luchits 11 years ago
parent
commit
fc00692c98
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Controls/ElementDataGridRow.cpp

+ 1 - 1
Source/Controls/ElementDataGridRow.cpp

@@ -249,7 +249,7 @@ ElementDataGrid* ElementDataGridRow::GetParentGrid()
 	return parent_grid;
 }
 
-void ElementDataGridRow::OnDataSourceDestroy(DataSource* data_source)
+void ElementDataGridRow::OnDataSourceDestroy(DataSource* ROCKET_UNUSED_PARAMETER(_data_source))
 {
 	if(data_source != NULL)
 	{